FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Gettting values from URL in PHP 5.4
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Gettting values from URL in PHP 5.4 [message #179908] Tue, 18 December 2012 17:50 Go to previous message
Tim Rude is currently offline  Tim Rude
Messages: 2
Registered: December 2012
Karma:
Junior Member
Sorry if this is a dumb question. I'm a PHP novice.

We have been using PHP 4 on a page in our website to pre-populate some text
boxes on a form. The text is passed as part of the URL.

Here's a sample url showing how the data is passed:

http://www.samplesite.com/mypage.php?name=Sample+Name&addr=123+Main+Str eet&city=Sometown%2C+AL+12354

Here's the code I use on the page to populate the form boxes:

<input type="text" name="on0" maxlength="40" value="<?php echo $name; ?>">
<input type="text" name="os0" maxlength="40" value="<?php echo $addr; ?>">
<input type="text" name="on1" maxlength="40" value="<?php echo $city; ?>">

With PHP 4, it works perfectly.

Now our hosting provider is updating from PHP 4 to PHP 5.4. But with PHP
5.4, none of the form boxes get populated. There's no error message or
anything, it just simply leaves the form boxes blank as if nothing was
passed via the URL.

What do I need to do to get it working with PHP 5.4?

Tim Rude
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dynamic redirect - losing variable
Next Topic: HP syntax error, unexpected T_variable
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 09 08:54:39 GMT 2024

Total time taken to generate the page: 0.05281 seconds