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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.