passing variables throug a redirect confirmation p

rodsdesign 10 Apr, 2008
Hi,

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
Max_admin 10 Apr, 2008
Hi, after the code above add something like this :

<?php echo $_POST['first_name']; ?>


Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rodsdesign 10 Apr, 2008
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...

 <?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!
Max_admin 10 Apr, 2008
Try to make the $custom_tag variables like this :


$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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rodsdesign 10 Apr, 2008
Thanks Max... that did it...

I was missing the period in the ".$firstname"

Really appreciate you guys!!
This topic is locked and no more replies can be posted.