HomeThursday, March 23, 2017, 14:18:55
1

PHP Form Basic

Tuesday, February 10, 15, 09:37:47, 2 Yaers Ago Via wain, Hits: 1764
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 } ?>

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

Just wanted to say thanks you for the code.

Sign In

Sponsor


Related

PHP Tutorials

Useful step-by-step PHP tutorials for beginners

Upload Image with PHP [Example2]

[Example2] Tutorial - How to upload and resize image with PHP

MySQL to RSS

Publishing MySQL data in RSS

PHP Redirect

Header (location) redirect must be processed before any output to the browser.

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

Preventing multiple form submissions

Preventing multiple form submissions

View content in a zip file with PHP

List all files in a zip archive with PHP

Captcha V2 - Free PHP Script

PHP Captcha protection image Version 2, - Requirement(s): PHP Server, GD Library

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Mar 2, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.