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);
, 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
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
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
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
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
6 matches
Mail list logo