Jump to content

php post help


desmond_ckl

Recommended Posts

Hi experts ! i need guide line for php post  :shy:

Example:

In A.php i done my calculation , i would like to use form action post to C.php but before that i need go through B.php.

A.php do calculation then next step is B.php let user enter information final step is C.php show information of A.php + B.php

 

A.php coding example:

<form action='C.php'  method='POST'>
<input .....>
<input type="submit"   name="Submit"  />
</form>

 

 

Link to comment
Share on other sites

So If i'm right u need to go through 3 files in which case:

 

A.php

<form action='B.php' method='POST'>
<input type='text' name='first_info'>
<input type='submit' value='Go'>

 

B.php

<?php
$First_Info = $_POST['first_info'];
?>
<form action='C.php' method='POST'>
<input type='hidden' name='first_info' value='<?php echo $First_Info; ?>'>
<input type='text' name='second_info'>
<input type='submit' value='Submit'>
</form>

 

And then you have C which would have access to $_POST['first_info'] and $_POST['second_info']

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.