Forum Moderators: coopster
<u><a href='user-feedback.php?user_id={$user_id}")'><u>Check Users Feedback</a></u></small>
the variable here that I need is the on the advert details page called $user_name
The link above when clicks goes to a new page to allow the person to place feedback on the seller.
When on the details page the $user_name variable is there say sarah
I want to use the $user_name to pre fill the form name on the feedback page
How do I page the variable to a new page?
Ie is there like a global variable?
Issue is due to too totally separate scripts being used. But all I need is to have the variable from page on passed to page two
Or are you saying that you are using a GET request, but dont know how to access those variables?
If so use $_GET['user_id'] in your case.
Try:
echo '<pre>POST';
print_r($_POST);
echo 'GET'
print_r($_GET);
echo '</pre>';