Re: [PHP] Extracting Variables From URL

2007-05-17 Thread Zoltán Németh
I think you should try: http://php.net/parse_url greets Zoltán Németh 2007. 05. 16, szerda keltezéssel 19.40-kor CK ezt írta: > Hi All, > > The following code works just fine for outputting links from an > array. The next goal, is parsing the $thisPage variable from the URL > (http://bushido

Re: [PHP] Extracting Variables From URL

2007-05-16 Thread J R
http://www.php.net/reserved.variables use $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] just parse its value to get what you needed. hth, John On 5/17/07, CK <[EMAIL PROTECTED]> wrote: Hi All, The following code works just fine for outputting links from an array. The next goal, is parsin

[PHP] Extracting Variables From URL

2007-05-16 Thread CK
Hi All, The following code works just fine for outputting links from an array. The next goal, is parsing the $thisPage variable from the URL (http://bushidodeep.com/contact.html/) so as $thisPage=strtolower("contact");?>, this variable could also be assigned to the $links[] $key. Moving to

[PHP] extracting variables from files

2002-07-31 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I break out in a cold sweat just thinking about regex, so I thought I'd ask you if there was an easier way to do this: I want to look through all of the files in a directory and extract a certain variable from each. This i

RE: [PHP] Extracting Variables

2002-06-13 Thread David Freeman
> echo "i = $i"; > for($c=1;$c<=$i;$c++){ > echo "team_number $team_number_$c"; > echo "sub1_$c = $sub1_$c"; > echo "sub2_$c = $sub2_$c"; > echo "sub3_$c = $sub3_$c"; > echo "sub4_$c = $sub4_$c"; > echo "sub5_$c = $sub5_$c"; > } > } Perhaps this: Ech

RE: [PHP] Extracting Variables

2002-06-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 15:54 > > I hope that someone will be kind enough to help me on this. > I want to do something like the following, but it does not work: > testinput(); > function testinput(){ > GLOBAL $HTTP_POST

[PHP] Extracting Variables

2002-06-13 Thread Steve Buehler
I hope that someone will be kind enough to help me on this. I have some variables on a page that are dynamic. I can run this to view the variables (from a POST) for testing: Foreach($HTTP_POST_VARS as $key=>$value) echo("$key => $value"); and the results are: -results- team_number_1 =>