Re: [PHP] newbie issues with control structures HTML form

2004-01-27 Thread Stuart
Jonno Agnew wrote: I wondered if I can ask you two follow-up questions? On-list, yes. Off-list, yes, at consultancy rates. (1) On Useractive's PHP environment, if ($guessnumb) { seems to work fine, but on my PHP 4.3.4 environment it doesn't. Is there some setting I need to tweak, and if so

Re: [PHP] newbie issues with control structures HTML form

2004-01-22 Thread Stuart
Jonno Agnew wrote: if ($guessnumb) { Try $_GET['guessnumb'] or $_POST['guessnumb'] if the form is posted. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] newbie issues with control structures HTML form

2004-01-22 Thread Martin Towell
Looking at the URL: guess.php?guessnumb=21guessnumb=tries=1 I notice that 'guessnumb' is in there twice. PHP will use the last one in that list I notice that in your form, you have two inputs with the same name input type=text name=guessnumb size=5 maxlength=3 / input type=hidden