> -----Original Message-----
> From: Joe Harman [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2003 06:12
> 
> The name of the set of radio buttons is the QuestionID (so it's a
> number)... And the options are the AnswerID (they are also 
> numbers)... 

This is technically invalid for PHP -- all your form field names should conform to the 
rules for PHP variable names, so it would be better to use name="q1", name="q2", etc.

The reason is that if you were to turn register_globals on, PHP would try to create 
global variables using your field names, and $1, $2, etc. are not valid variables.  
Whilst PHP *may* get this right if you have register_globals turned off, there is no 
absolute guarantee that $_POST['1'] etc. will be handled correctly.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to