Forum Moderators: coopster

Message Too Old, No Replies

Help - with $ GET

Simple use, but doesn't work

         

rcharrington

4:10 pm on Sep 17, 2007 (gmt 0)

10+ Year Member



Hi, I have the following code in "index.php":-

<frame src="http://www.charrington.net/page1.php?tid=<?php

$_GET['id'];?>"

If I call ....../index.php?id=TEST the variable tid is blank.

Anyone got any idea why, or how to get it to work?

Your input will be most appreciated.

Richard

rcharrington

4:26 pm on Sep 17, 2007 (gmt 0)

10+ Year Member



Okay, while I was waiting I got it to work (it needed echo $GET['id']).

However, it changes my uppercase parameter to lower case (I guess this is done by the browser).

Is there an 'uppercase()' command?

justgowithit

4:29 pm on Sep 17, 2007 (gmt 0)

10+ Year Member



strtoupper [us2.php.net]

The PHP Manual is awesome... ;)

coopster

5:19 pm on Sep 17, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, rcharrington.

Yes, you need to echo/print out the value of the variable as you discovered. Your parameter value's case should not be changing on you though ... unless it is being rewritten somewhere in the process.