[thelist] PHP - getting variables from a form when register_globals is off
Peter Lowe
pgl at instinct.org
Thu Aug 21 16:29:09 CDT 2003
On Aug 21, Joel D Canfield wrote:
> I'm way fuzzy this morning, and this isn't making any sense to me.
>
> Moving some code to a new host (from a Unix box to Windows box) which I
> don't have direct access to (although I could get it if necessary.)
>
> This code seems to result in a blank page. Is there something obviously
> amiss?
>
> ====================================
> <?php
> $today = date("F j, Y, g:i a");
>
> strfname = $_post['fname'];
Try $_POST, and make sure the data is POSTed and not submitted via GET
(or consider using $_REQUEST).
- Peter
--
The Czech Republic: Home of the world's finest beer.
Litres drunk by Czechs so far this year: 1,046,984,247.53
- http://prague.tv/toys/beer/
More information about the thelist
mailing list