HomeMonday, February 8, 2016, 12:02:31
1

PHP Form Basic

Tuesday, February 10, 15, 09:37:47, 1 Year Ago Via wain, Hits: 269
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, 12:12:00

Just wanted to say thanks you for the code.

Sign In

Web Hosting
First Month Free with Coupon Code phpmonth
Unlimited Domains - Unlimited Storage
Unlimited Transfer - Unlimited Email
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Sun, Jan 31, 16
So far has created 114 entries.
wain
This author has not yet filled in any details.