Hi,
trying to use one form and have the confirmation page change based on response. (that's working)
Using the FAQ -
all is well. What I NEED to do is pass the person's first name to the redirected page. Is that possible?
thanks
trying to use one form and have the confirmation page change based on response. (that's working)
Using the FAQ -
<?php
global $mainframe;
$custom_tag = '<meta http-equiv="refresh" content="5; url=http://www.example.com" >';
$mainframe->addCustomHeadTag($custom_tag);
?>
<p>Thank You.</p>
<p>Add your text for the thank you page here.</p>
all is well. What I NEED to do is pass the person's first name to the redirected page. Is that possible?
thanks
Hi, after the code above add something like this :
Cheers
Max
<?php echo $_POST['first_name']; ?>
Cheers
Max
hmmm I don't think i was clear...
the variable needs to be passed to the page that shows up after the refresh....
here's the code that starts it all...
I need the firstname and email results passed to the appropriate page...
So on the following page it can have the variable (its for an affiliate program that doesn't use a gateway)
anyway to do that?
Thanks!
the variable needs to be passed to the page that shows up after the refresh....
here's the code that starts it all...
<?php
global $mainframe;
$firstname=$_POST[firstname];
$email=$_POST[email];
if ($_POST['decision']=="A"«») {
$custom_tag = '<meta http-equiv="refresh" content="0; url=index.php?option=com_content&task=view&id=92&Itemid=141">';
}
if ($_POST['decision']=="B"«») {
$firstname=$_POST[firstname];
$email=$_POST[email];
$custom_tag = '<meta http-equiv="refresh" content="0; url=index.php?option=com_content&task=view&id=121&Itemid=141">';
}
if ($_POST['decision']=="C"«») {
$custom_tag = '<meta http-equiv="refresh" content="0; url=index.php?option=com_content&task=view&id=122&Itemid=141">';
}
if ($_POST['decision']=="D"«») {
$custom_tag = '<meta http-equiv="refresh" content="0; url=index.php?option=com_content&task=view&id=161&Itemid=141">';
}
$mainframe->addCustomHeadTag($custom_tag);
?>
I need the firstname and email results passed to the appropriate page...
So on the following page it can have the variable (its for an affiliate program that doesn't use a gateway)
anyway to do that?
Thanks!
Try to make the $custom_tag variables like this :
Use the $_GET at the next page to get the values!
Cheers
Max
$custom_tag = '<meta http-equiv="refresh" content="0; url=index.php?option=com_content&task=view&id=121&
Itemid=141&firstname='.$firstname.'&email='.$email.'">';
Use the $_GET at the next page to get the values!
Cheers
Max
Thanks Max... that did it...
I was missing the period in the ".$firstname"
Really appreciate you guys!!
I was missing the period in the ".$firstname"
Really appreciate you guys!!
This topic is locked and no more replies can be posted.
