Re: Dynamically Created Checkboxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This bit?

On 22/02/11 22:06, Gary wrote:
for($i=1; $i<=$_POST['counties']; $i++) {
if ( isset($_POST["county{$i}"] ) ) {

You loop over $_POST['counties'] and look for $_POST["county$i"]

I suspect that there is no field 'counties' in your form, so the server is complaining about the missing index - seems likely that the production server
is not showing the error, but instead just giving up on the page.

I think the IE7/Firefox browser difference is a red herring: it wasn't actually working in any browser, or the code changed between tests. Remember, PHP is server side and generates HTML (or whatever). Unless you tell the PHP what browser you are using and write PHP code to take account of that (not generally recommended) then the server output is the same regardless of browser.

--
Peter Ford, Developer                 phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd.                              www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent   TN12 0AH   United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux