HomeSunday, March 29, 2015, 18:43:22
1

PHP Form Basic

Tuesday, February 10, 15, 08:37:47, 2 Months Ago Via wain, Hits: 1
PHP Form - PHP form basic, Requirement(s): PHP Server
Download source code :
http://phpform.net/download.php?f=form-basic.zip

Example:

Code:
<?php
if(isset($_POST['submit']))
{
$subject = $_POST['subject'];
$text = $_POST['text'];
echo $subject . '::' . $text . ' Ok';
}else{
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="subject">
<input type="text" name="text">
<input type="submit" name="submit" value="Submit">
</form>
<?php } ?>

Comments

Guest Sunday, February 12, 2012, 11:12:00

Just wanted to say thanks you for the code.

Sign In

Sponsor
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Wed, Mar 25, 15
So far has created 112 entries.
wain
This author has not yet filled in any details.