Page 1 of 1 [ 3 posts ] 

Albinoboy
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 5 Aug 2010
Age: 28
Gender: Male
Posts: 70
Location: Surrey, England

16 Dec 2010, 12:25 pm

The Input
thisisthehttpbit://ident.yourlifegroup. ... &sid=ipsum

The Output

Code:
<input type='hidden' name='siteid' value='' />   <!-- This should say ipsum -->
<input type='hidden' name='unqid' value='' />    <!-- This should say lorem -->


The Script
Code:
<input type='hidden' name='siteid' <?php echo ("value='".strip_tags($_GET['sid'])."'"); ?> />
<input type='hidden' name='unqid' <?php echo ("value='".strip_tags($_GET['uid'])."'"); ?> />



kra17
Veteran
Veteran

User avatar

Joined: 14 Feb 2010
Age: 30
Gender: Male
Posts: 594
Location: Sweden

16 Dec 2010, 1:02 pm

Works fine here


_________________
:bigsmurf: :bigsmurf:


mcg
Veteran
Veteran

User avatar

Joined: 26 Jan 2010
Age: 34
Gender: Male
Posts: 538
Location: Sacramento

16 Dec 2010, 1:20 pm

That code seems fine, it's probably a server thing as this seems to work: http://ident.yourlifegroup.org/index.php?uid=lorem&sid=ipsum

Are you using mod_rewrite? If so post your RewriteRules.

Alternatively, as a workaround, you might be able to parse it out of $_SERVER['REDIRECT_REQUEST_URI'] (Just get the substring that contains everything after the '?', then use parse_str() on that).