Jump to content

[SOLVED] how to pass form input through several php document?


zgkhoo

Recommended Posts

 

eg.

//file 1= form1.php
<form action="register2.php" method="post">
<tr><td>username<td> <td><input type="text" name="username"/></td></tr>
<td><input type="submit" /></td>

//file2=register2.php
<form action="confirm.php" method="post">
<tr><td>game id<td> <td><input type="text" name="gameid"/></td></tr>
<td><input type="submit" /></td>

//file3=confirm.php
<form action="store.php" method="post">
<tr><td>Confirm?<td><td></tr>
<td><input type="submit" /></td>

//file4=store.php

$sql="INSERT INTO person (Username,GameID)
VALUES
('$_POST[username]','$_POST[gameid]')

 

how can i pass the value username of form1.php and gameid of register2.php to store.php?

seem only just confirm.php interact with store.php which only confirm.php with <form action="store.php" method="post"> this  command..

thanks.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.