[PHP] Form Question

2001-10-21 Thread Chip Landwehr

I got a form that a user fills out.  When they hit submit they are
transfered to a PHP page that verifies their data.  If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunately all there entries are wiped out and they have to re-enter
everything.  Any easy way to keep there original entries?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr

I got that but the passing back I'm having a problem with.  This is waht I
got:

if ($T3==){header (Location: new_narrative.php?FilledName=No);}

How do I change this to include a Post?


Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 well all of the entries are passed via post or get to your form handler
 (obviously).  So just pass them back when you re-call the form.

 then put in

 input type=text name=firstname value=?=$firstname? in the form

 or something like that anyway.

 - seb

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: 21 October 2001 20:49
 To: [EMAIL PROTECTED]
 Subject: [PHP] Form Question


 I got a form that a user fills out.  When they hit submit they are
 transfered to a PHP page that verifies their data.  If a problem is found
 (They forgot to enter an e-mail address) the PHP sends them back to the
 original form with the field they forgot to fill out highlighted in red.
 Unfortunately all there entries are wiped out and they have to re-enter
 everything.  Any easy way to keep there original entries?




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr

I can't do that because  the form is to big and there is a limit to how much
data you can send via the URL bar.  Any other ideas?


Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 if ($T3==){header (Location:
 new_narrative.php?FilledName=Novariable1=hellovariable2=goodbye);}

 etc etc

 - seb

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: 21 October 2001 21:03
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Form Question


 I got that but the passing back I'm having a problem with.  This is waht I
 got:

 if ($T3==){header (Location: new_narrative.php?FilledName=No);}

 How do I change this to include a Post?


 Seb Frost [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  well all of the entries are passed via post or get to your form handler
  (obviously).  So just pass them back when you re-call the form.
 
  then put in
 
  input type=text name=firstname value=?=$firstname? in the form
 
  or something like that anyway.
 
  - seb
 
  -Original Message-----
  From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
  Sent: 21 October 2001 20:49
  To: [EMAIL PROTECTED]
  Subject: [PHP] Form Question
 
 
  I got a form that a user fills out.  When they hit submit they are
  transfered to a PHP page that verifies their data.  If a problem is
found
  (They forgot to enter an e-mail address) the PHP sends them back to the
  original form with the field they forgot to fill out highlighted in red.
  Unfortunately all there entries are wiped out and they have to re-enter
  everything.  Any easy way to keep there original entries?
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Submit

2001-10-21 Thread Chip Landwehr

I got a form (form.php) that recalls itself when you hit submit to verify
all the fields.  If all the fields are good, I need it to automatically post
to a new page.  Anyway to do this?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr

But won't using a header kill all the form data?  Thought you had to use
post for that?



Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 sure, have to states for your script, one is the normal blank form, the
 second is the check.
 in your check, validate the data. if its not good, print the form out
again
 with those values already filled in if they apply.
 if it is good, redirect to a new page using header();
http://php.net/header
 be careful not to output any before you make this header call.

 jack

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, October 21, 2001 8:29 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Submit


 I got a form (form.php) that recalls itself when you hit submit to verify
 all the fields.  If all the fields are good, I need it to automatically
post
 to a new page.  Anyway to do this?




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr

lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?


Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 sorry chip, i'm so used to using sessions, i just kind of assumed you
would
 :-)
 sessions will carry the data around.if you can't/won't use them, you
 could use curl to post the values along, but sessions are much more
elegant
 for this kind of thing

 my $.02
 jack

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, October 21, 2001 8:39 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Submit


 But won't using a header kill all the form data?  Thought you had to use
 post for that?



 Jack Dempsey [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  sure, have to states for your script, one is the normal blank form, the
  second is the check.
  in your check, validate the data. if its not good, print the form out
 again
  with those values already filled in if they apply.
  if it is good, redirect to a new page using header();
 http://php.net/header
  be careful not to output any before you make this header call.
 
  jack
 
  -Original Message-----
  From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, October 21, 2001 8:29 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Submit
 
 
  I got a form (form.php) that recalls itself when you hit submit to
verify
  all the fields.  If all the fields are good, I need it to automatically
 post
  to a new page.  Anyway to do this?
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr

lol!

True, so true...

Richard S. Crawford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can you imagine the trouble you'd get into if you could?

At 09:47 PM 10/19/2001, Chip Landwehr wrote:
Is there any way to do this in PHP4?


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] IRC Channel

2001-10-19 Thread Chip Landwehr

Is there a PHP IRC channel?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]