desmond_ckl Posted November 1, 2011 Share Posted November 1, 2011 Hi experts ! i need guide line for php post 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 More sharing options...
RaythMistwalker Posted November 1, 2011 Share Posted November 1, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.