Re: How can I pass a variable via a url?

From: Date: Wed, 16 Apr 2003 19:16:13 +0000
Subject: Re: How can I pass a variable via a url?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144182@lists.php.net to get a copy of this message
Should I make $job_id global? /T on 4/16/03 2:41 PM, Rolf Brusletto at rolf-list@triculture.com wrote: > *This message was transferred with a trial version of CommuniGate(tm) Pro* > foreach($jobID as $v) { > echo "<a href=\"$PHP_SELF?jobID=$v\">click here</a>"; > }; > > to show the page, > > if(isset($jobID)) { > //show html needed for given jobID > }; > > Rolf Brusletto > PHP/MySQL Coder > Security Admin > rbrusletto@phpexamples.net > http://www.phpexamples.net > > > Info@Best-IT wrote: > >> *This message was transferred with a trial version of CommuniGate(tm) Pro* >> How can I pass a variable via a url? >> >> I have a table generated by a MYSQL query, in order to isolate one entry I >> would like to click a link to the same page except with $jobID defined to >> the reloaded version of the page. I was thinking something like: >> >> <a href="/samepage.php?jobID=1">click here</a> >> >> Thanks for your help! >> /T >> >> >> >> >> >> >> >

« previous php.general (#144182) next »