Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Carry Variables Forward to Different Page

I have this result in a script page:
CodeDownload  
<tr><td><input type='hidden' name='post_id' value='2'></td></tr>
<tr><td><input type='hidden' name='topic_id' value='5'></td></tr>


This is what I am doing to try to carry those variables to the next page:
CodeDownload  
global $post_id, $topic_id;
redirect(INFUSIONS."xxxxxxxxxxxxxx/write_comment.php?post_id='".$post_id."' && topic_id='".$topic_id."'");


It will not work. I've tried many different scenarios to carry the values forward.
Do I need to use sessions?
Register globals was disabled many years ago due to severe security issues. 

CodeDownload  

$post_id = "";
$topic_id "";

if (isset($_POST['post_id'])) { $post_id = $_POST['post_id']; }
if (isset($_POST['topic_id'])) { $topic_id = $_POST['topic_id']; }

Thanks but I've gone way beyond this and have everything figured out.
Thread Information
Author
Replies
3 posts
Views
98 times
Last Post
Last updated on 13 days ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Grimloch