refiking Posted January 4, 2008 Share Posted January 4, 2008 I wrote a script to go to a status page for each customer. That script works fine. It sends me to the link I wanted. But then, it doens't recognize the loan_id on the next page. For example. Let's say the page was test.com/user.php?loan_id=12345 The link sends me to that page, but the script for user.php simply doesn't retrieve the loan_id. What do I need to add or take away from this to get the desired result? Here is the code: <?php session_start(); include 'cnt.php'; $loan_id = $_POST['loan_id']; echo $loan_id; ?> Quote Link to comment https://forums.phpfreaks.com/topic/84529-solved-how-can-i-pull-data-from-post-form-data/ Share on other sites More sharing options...
kenrbnsn Posted January 4, 2008 Share Posted January 4, 2008 If the information is being sent on the URL, you need to pull the data from the $_GET array, not the $_POST array. Ken Quote Link to comment https://forums.phpfreaks.com/topic/84529-solved-how-can-i-pull-data-from-post-form-data/#findComment-430653 Share on other sites More sharing options...
refiking Posted January 4, 2008 Author Share Posted January 4, 2008 Changed to _GET and it worked perfectly!!! Quote Link to comment https://forums.phpfreaks.com/topic/84529-solved-how-can-i-pull-data-from-post-form-data/#findComment-430664 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.