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; ?> 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 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!!! 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
Archived
This topic is now archived and is closed to further replies.