[PHP] Empty form

2002-02-15 Thread Ben Clumeck
I am trying to have my form redirect back to my form, if the 'name' field is not filled in or the submit button is not pushed. Can someone tell me what my problem is with the script below that I have in my header: ? if(!isset($name)||($HTTP_POST_VARS[submit])) { header(Location: form.htm);

Re: [PHP] Empty form

2002-02-15 Thread hugh danaher
, fill in your address and hit the \Submit\ Button); etc. This way, the user fills in only the missing data. Hope this helps. Hugh - Original Message - From: Ben Clumeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 15, 2002 12:24 AM Subject: [PHP] Empty form I am trying

Re: [PHP] Empty form

2002-02-15 Thread Steven Walker
Ben, I've been dealing with this problem recently. The solution I found works great in my case... the data processing page is the same as the form page. When the page is loaded it tests for post data. If no data is available (ie !isset($name)), then the form will be displayed. When the user

[PHP] Empty form variables when uploading, Help please???

2001-11-11 Thread Sandra Rascheli
Hi everybody, I hope someone is able to help me with this, I've been having this problem for a couple of months now and I have not been able to find a solution. I have a form to upload a file which submits to itself, and has two submit buttons, one called eliminarfoto (deletephoto) and

Re: [PHP] empty form field = pgsql NULL gracefully how?

2001-02-15 Thread Richard Lynch
INSERT INTO testtab2 VALUES ( upper('$symbol'), '$two_liner', '$href', '$full_desc', '$submitter_name', '$submitter_email', CURRENT_TIMESTAMP ) I hate to muck them up with a bunch of tests for empty vars, which then need to be replaced

[PHP] empty form field = pgsql NULL gracefully how?

2001-02-13 Thread Britton
Having nice simple things like INSERT INTO testtab2 VALUES ( upper('$symbol'), '$two_liner', '$href', '$full_desc', '$submitter_name', '$submitter_email', CURRENT_TIMESTAMP ) I hate to muck them up with a bunch of tests for