PHP simple method to fill in publishing information in multiple steps example code_PHP tutorial

WBOY
Release: 2016-07-21 15:16:16
Original
900 people have browsed it

1.php

Copy code The code is as follows:


Basic information 1:
Basic information 2:



2.php
Copy code The code is as follows :


Product name:
Product Price:
Product model:





3.php
Copy code The code is as follows:


Other information 1:
Other information 2:
/>
/>
/>
/ >
/>



4.php
Copy code The code is as follows:

$base1=$_REQUEST['base1'];
$base2=$_REQUEST['base2'];
$prcname=$_REQUEST['prcname'];
$price=$_REQUEST['price'];
$prcXH=$_REQUEST['prcXH'];
$other1=$_REQUEST['other1'];
$other2=$_REQUEST['other2 '];

$sql1="insert into [base_table](base1,base2) values('{$base1}','{$base2}')";
$sql2="insert into [prc_table](prcname,price,prcXH) values('{$prcname}','{$price}','{$prcXH}')";
$sql3="insert into [other_table](other1, other2) values('{$other1}','{$other2}')";
query($sql1);
query($sql2);
query($sql3);

echo "Writing completed";
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/325956.htmlTechArticle1.php Copy the code as follows: form name=form1 id=form1 method=post action=2.php Basic Information 1: input type=text name=base1 / Basic information 2: input type=text name=base2 / input ty...
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