Home > Backend Development > PHP Tutorial > submit php multiple submit submission form processing method

submit php multiple submit submission form processing method

WBOY
Release: 2016-07-29 08:40:19
Original
2395 people have browsed it

test.php

Copy code The code is as follows:


$test = $_POST[ 'test '];
echo '12 ';
echo $test;
echo $_POST[ ' submit1 '];
echo $_POST[ 'submit2 '];
if (isset($_POST[ 'submit1 ']) && $_POST[ 'submit1 '] == 'submit1 ')
{
echo 'ok1 ';
}
if (isset($_POST[ 'submit2 ']) && $_POST[ 'submit2 '] == 'submit2 ')
{
// echo "

< ;input name= 'submit2 ' type= 'submit ' value= 'submit2 ' title= 'submit2 '>



Why is this test page loaded? No data is transmitted for the first time?
echo $_POST[ 'submit1 '];echo $_POST[ 'submit2 ']; prints nothing. What is the reason for this? Is there any way to solve it?
< ;script language= "JavaScript ">






The above introduces the submission php multiple submit submission form processing method, including the submission content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template