Forum Moderators: coopster

Message Too Old, No Replies

Retrieve value from php header file

Unable to get value from php header for processing

         

ron_isc

10:59 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



I am unable to get the value passed from an html file through the header into a php script I am currently working on. The value appears in the address bar in the following format "http://mydomain.com/_estore/edit/orders_print.php?id=2562&template=OPO%20temp". PO Temp is the file which contains the virtual call to the php script and is a template. The value I need to to get is contained in id but I am unable to get the value from the header. Any help or ideas would be greatly appreciated.
Thanks,
Ron

grahamstewart

11:04 pm on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure I entirely understand your problem Ron.

Isn't the value available as

$_GET['id']

ron_isc

11:26 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



Yes, I thought it would be also. Unfortunately it is not processing using the call from the template. I have tried both $_POST['id'] and $_GET['id'] with no success. I have also tried numerous other combinations including session variables.
Thanks for your quick reply.

grahamstewart

11:30 pm on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think your confusing yourself (and me) with all this talk of 'virtual calls', 'passing values', 'processing' and templates.

How about posting a very short, simplified example that demonstrates your problem?

ron_isc

11:46 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



Thanks alot for your help. It is greatly appreciated. The problem was solved by changing the call <include virtual=myfile.php> to <include file=myfile.php>. The variable could not be passed through the virtual file call for some reason.
Thanks again.