Re: [PHP] resubmit form after validation error

2009-06-23 Thread Shawn McKenzie
PJ wrote: > Shawn McKenzie wrote: >> PJ wrote: >> >>> Caner Bulut wrote: >>> Hi PJ, You can use the structure following $bid = htmlentities($_GET['id']); >>> the code below >>> if(empty($bid) { $bid=0; } >>> produces

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
Shawn McKenzie wrote: > PJ wrote: > >> Caner Bulut wrote: >> >>> Hi PJ, >>> >>> You can use the structure following >>> >>> $bid = htmlentities($_GET['id']); >>> >>> >> the code below >> >>> if(empty($bid) { >>> $bid=0; >>> } >>> >> produces an empty screen with no error

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Andrew Ballard
On Tue, Jun 23, 2009 at 11:37 AM, Shawn McKenzie wrote: > PJ wrote: >> Caner Bulut wrote: >>> Hi PJ, >>> >>> You can use the structure following >>> >>> $bid = htmlentities($_GET['id']); >>> >> the code below >>> if(empty($bid) { >>> $bid=0; >>> } >> produces an empty screen with no error messages.

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Shawn McKenzie
PJ wrote: > Caner Bulut wrote: >> Hi PJ, >> >> You can use the structure following >> >> $bid = htmlentities($_GET['id']); >> > the code below >> if(empty($bid) { >> $bid=0; >> } > produces an empty screen with no error messages... > I have been having some trouble understanding "empty()" -- it doe

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
sible to streamline the >> whole process, but then it does work and I am just learning... :-) >> Thanks again. >> PJ >> >> >> >> Caner BULUT wrote: >>> Hi, >>> >>> You can use a variable to that. Like following. Example if the variab

Re: [PHP] resubmit form after validation error

2009-06-22 Thread Caner Bulut
gt; > > } > > > > Thanks. > > Caner. > > > > > > -Original Message- > > From: PJ [mailto:af.gour...@videotron.ca] > > Sent: 20 June 2009 22:55 > > To: php-general@lists.php.net > > Subject: [PHP] resubmit form after validation error &

Re: [PHP] resubmit form after validation error

2009-06-22 Thread PJ
ing. Example if the variable is 1 > you start to processing form input. > > Example > > } > > Thanks. > Caner. > > > -Original Message- > From: PJ [mailto:af.gour...@videotron.ca] > Sent: 20 June 2009 22:55 > To: php-general@lists.php.net >

RE: [PHP] resubmit form after validation error

2009-06-20 Thread Caner BULUT
Hi, You can use a variable to that. Like following. Example if the variable is 1 you start to processing form input. Example mailto:af.gour...@videotron.ca] Sent: 20 June 2009 22:55 To: php-general@lists.php.net Subject: [PHP] resubmit form after validation error I'm having a bit of a

[PHP] resubmit form after validation error

2009-06-20 Thread PJ
I'm having a bit of a time figuring out how to resubmit a form after obligatory field missing error. The problem is that the page is accessed from a search page href where the uri is like = file.php$=123. Since the method="post" action="file.php?= does not work nor does PHP_SELF, I have set the act