Jump to content

Getting a php variable from one page to another


debuitls

Recommended Posts

hi

 

I have defined a variable on a page that holds a get value from a previous page.

 

$propid = $_GET["id"];

 

I'm trying to access that variable now on a third page.

 

I thought I could just append the variable to the URL that goes to the third page like this.

 

<form name="bid" method="get" action="processbid.php?$propid">

 

But the $propid value does not show up in the URL of the next page?

 

I was just wondering if anybody could see where I'm going wrong?

 

Or maybe if someone knows of a better way to get the variable onto the third page other than using get? I don't really want to use a session though.

 

If anybody could suggest anything it would be great.

 

Thanks

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.