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
Re: Gettting values from URL in PHP 5.4 [message #179909 is a reply to message #179908] Tue, 18 December 2012 17:55 Go to previous messageGo to previous message
Salvatore is currently offline  Salvatore
Messages: 38
Registered: September 2012
Karma:
Member
On 2012-12-18, Tim Rude <timrude(dot)nospam(at)nospam(dot)hotmail(dot)com> wrote:
> 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.

If you wrote your code like that throughout your site, you have a lot of
editing to do. The correct way to reference a request variable is
$_REQUEST['key']. So replace "$name" with "$_REQUEST['name'] and repeat
that step for the other values.

--
Blah blah bleh...
GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++
[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:57:27 GMT 2024

Total time taken to generate the page: 0.11759 seconds