jaxdevil Posted February 12, 2008 Share Posted February 12, 2008 I am trying to combine two different php scripts, I have them all done except one part. Data is sent in a registration form, a verification page displays, my variables are passed from the registration page, to the registration confirmation page, but when it forwards to the next page the variables do not get passed. The page the below code is in is as follows... /ice/user/register.php?price=123.00&art_no=US2000=&product=Cracked Now below it should forward to the login page /login.php?price=123.00&art_no=US2000&product=Cracked but it doesn't, the page comes through as login.php?price=$price_value&art_no=$art_no_value&product=$product_value , verbatim. The variable values never get replaced, it just goes to the page exactly as below. Any ideas? $template->setVariable('message',$page_message); $template->setVariable('refreshseconds','20'); $template->setVariable('refreshpath','/login.php?price=$price_value&art_no=$art_no_value&product=$product_value'); $template->addBlock('refreshpage'); Quote Link to comment https://forums.phpfreaks.com/topic/90622-sending-a-variable-but-it-will-not-send/ Share on other sites More sharing options...
jaxdevil Posted February 12, 2008 Author Share Posted February 12, 2008 Never mind, I figured it out right after I posted. The code should be as follows: $template->setVariable('message',$page_message); $template->setVariable('refreshseconds','20'); $template->setVariable('refreshpath','/login.php?price='.$price.'&art_no='.$art_no.'&product='.$product.''); $template->addBlock('refreshpage'); Quote Link to comment https://forums.phpfreaks.com/topic/90622-sending-a-variable-but-it-will-not-send/#findComment-464581 Share on other sites More sharing options...
hoogie Posted February 12, 2008 Share Posted February 12, 2008 Do you need to get out of your quotes to insert the variables? $template->setVariable('refreshpath','/login.php?price='.$price_value.'&art_no='.$art_no_value.'&product='.$product_value); edit: aw, you beat me Quote Link to comment https://forums.phpfreaks.com/topic/90622-sending-a-variable-but-it-will-not-send/#findComment-464582 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.