Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Hey guys, Thanks for the input! This is pretty nice, and DOES work. I like the fact that the fields have been into an iterative array. It's a very elegant solution. However the problem with this approach is that if you load the page directly it works. But if you call the page from the index.php pa

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
When you do validation of the form in the same script that shows the form, the normal way to do this is This won't work if you're getting to the page via another form, since the $_POST['submit'] is set. There two ways of avoiding this: 1) use hidden fields in each form to indicate which for

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Sounds good! Thanks Ken. Very clear now. Tim Sent from my iPhone On May 27, 2013, at 1:57 PM, Ken Robinson wrote: > When you do validation of the form in the same script that shows the form, > the normal way to do this is > >if (isset($_POST['submit'])) { > // > // validation here > //

[PHP] Header Keep-Alive

2013-05-27 Thread Al
I'm trying to increase the connection timeout; but can't get it to work. Note: Keep-Alive gets repeated. I'm using: header("Connection: Keep-Alive"); header("Keep-Alive: timeout=9, max=100"); I get: (Status-Line) HTTP/1.1 200 OK DateMon, 27 May 2013 20:19:54 GMT Server Apache Connection

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al > I'm trying to increase the connection timeout; but can't get it to work. > Note: Keep-Alive gets repeated. > > I'm using: > header("Connection: Keep-Alive"); > header("Keep-Alive: timeout=9, max=100"); > Set the second optional argument to "true" See http://de.php.net/manual/en/fu