would you like the page to reload? or would you just like a new box to appear with their name?
for the latter
Code:
<form method="post" action="write.php">
<p>
<label>Full Name:</label>
<textarea name="full_name"></textarea>
</p>
<input type="submit" value="Submit Name">
</form>
write.php
Code:
<?php
echo '<textarea name="full_name">My Name Is '. $_POST['full_name'] .'</textarea>';
?>
which would produce something along the lines of
Code:
_________________________________
| My Name Is __FULL_NAME__ |
| |
| |
|________________________________|
please excuse the ASCII art as I didnt think it prudent to actually create a page and take a screen shot.
now on another note.... if they are entering their name you shouldn't be using a textarea, but rather an input type.
Code:
echo '<input type="text" name="full_name" value="'.$_POST['full_name'].'">';
Bookmarks