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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.