Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7840
| From | "Tim Rude" <timrude.nospam@nospam.hotmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Gettting values from URL in PHP 5.4 |
| Date | 2012-12-18 11:50 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <kaqadm$bba$1@dont-email.me> (permalink) |
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+Street&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
Back to comp.lang.php | Previous | Next — 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