PHP provides a simple method for entering the publishing information in multiple steps. 1. php copy code: formnameform1idform1methodpostaction2. php basic information 1: inputtypetextnamebase1 basic information 2: inputtypetextnamebase2inputty 1.php
The code is as follows:
2. php
The code is as follows:
3. php
The code is as follows:
4. php
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 "write complete ";
?>
The http://www.bkjia.com/PHPjc/325956.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/325956.htmlTechArticle1.php code is 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...