HomeWednesday, April 26, 2017, 02:02:12
1

PHP Form Action Self Submit

Tuesday, February 10, 15, 14:10:17, 2 Yaers Ago Via wain, Hits: 2949
PHP form action self submit tutorial, requirement(s): PHP server
index.php
Code:
<?php
if(isset($_POST['submit']))
{
$filed1 = $_POST['field1'];
echo $filed1 . " ";
echo $filed2;
}else{
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="field1">
<input type="hidden" name="filed2" value="hidden value">
<input type="submit" name="submit" value="Submit Form">
</form>
<?php } ?>

jonix Thursday, June 27, 2013, 08:16:05

replace:

$filed1 = $_POST[\'field1\'];

with:

$filed1 = $_POST[\'field1\'];
$filed2 = $_POST[\'field2\'];

Sign In

Sponsor

Related

ShoutBox 1.1. PHP Script

ShoutBox allows your users to post short messages on your site. The script is lightweight and very easy to install and use.

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

MySQL to RSS

Publishing MySQL data in RSS

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf

FeedBack Form with Captcha

It allows your visitors to send you an email directly from your website.

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

PHP Fwrite : fwrite

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

Site Recommendation

This script will allow your visitors to recommend your site to their friends.
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.