View Single Post
Old 07-30-2008, 08:19 PM   #4 (permalink)
Slapshot
Registered User
 
Join Date: Feb 2008
Posts: 269
OS: Vista


Re: allowing user to edit text in Flash site

PHP Code:
<?php

echo '
<form method="post" enctype="text/plain">
<br />
Content:
<br />
<textarea name="content"></textarea>
<br /><br />
<input type="submit" value="Submit" name="submit">
</form>
'
;

if(!
$_POST['content']) {
    echo 
'Content is a required field.';
} else {
    echo 
'Content was successfully edited.';
    
$content htmlspecialchars($_POST['content']);
}

?>
Use javascript or something to import the variables.
Slapshot is offline   Reply With Quote