Jump to content

Sending a variable but it will not send


jaxdevil

Recommended Posts

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');

Link to comment
https://forums.phpfreaks.com/topic/90622-sending-a-variable-but-it-will-not-send/
Share on other sites

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');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.