Jump to content

passing variable to new page


mrwizard

Recommended Posts

i have this code in a form, i need to pass a variable $time to next page, how can i do that ?

 

 

      if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;;

 

else:

 

    print "<script language='javascript' type='text/javascript'>location.href='paypal.php';</script>";;;

Link to comment
https://forums.phpfreaks.com/topic/238130-passing-variable-to-new-page/
Share on other sites

You can do this with $_POST

 

$time = trim($_POST['time']);

 

Thnx for the reply.

 

I've been using the method like >>  paypal.php?time=$time which doesn't work here, is there a work around to use it with java script like in my case ?

 

I am trying the post method.

 

 

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.