Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7841
| From | Salvatore <sal@yojimbo.hack.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Gettting values from URL in PHP 5.4 |
| Date | 2012-12-18 17:55 +0000 |
| Organization | Yojimbo NNTP server |
| Message-ID | <kaqam7$1sc2$1@yojimbo.hack> (permalink) |
| References | <kaqadm$bba$1@dont-email.me> |
On 2012-12-18, Tim Rude <timrude.nospam@nospam.hotmail.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++
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Gettting values from URL in PHP 5.4 "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-18 11:50 -0600
Re: Gettting values from URL in PHP 5.4 Salvatore <sal@yojimbo.hack.invalid> - 2012-12-18 17:55 +0000
Re: Gettting values from URL in PHP 5.4 Christoph Becker <cmbecker69@gmx.de> - 2012-12-18 20:12 +0100
Re: Gettting values from URL in PHP 5.4 Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-18 14:44 -0500
Re: Gettting values from URL in PHP 5.4 "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-18 14:02 -0600
csiph-web