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
https://forums.phpfreaks.com/topic/250227-php-post-help/
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
https://forums.phpfreaks.com/topic/250227-php-post-help/#findComment-1283944
Share on other sites

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.