Forums

PHP

This topic is locked

form preview

Posted 22 Aug 2001 15:31:10
1
has voted
22 Aug 2001 15:31:10 Keith Slater posted:
What would be the best way to do a form preview. I'd be able to do it by putting the info in the the address bar and then GETing it but I'm sure that has flaws and on the form they can submit a picture which I want to be in the preview too. Soooo... what would be the best way, thanks again

keith

Keith Slater

Replies

Replied 22 Aug 2001 21:10:10
22 Aug 2001 21:10:10 chief monkey replied:
Keith,
You can as you say use a querystring to pass the information on, or use hidden fields, or even a session coolie, but hidden form fields are IMHO the easiest way.

George

Everybody has got to be somewhere
Replied 23 Aug 2001 15:14:54
23 Aug 2001 15:14:54 Keith Slater replied:
but on the form Im submitting a picture too.. Can I use any of those and submit the picture at the same time?

Keith Slater
Replied 24 Aug 2001 14:50:36
24 Aug 2001 14:50:36 chief monkey replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
but on the form Im submitting a picture too.. Can I use any of those and submit the picture at the same time?

Keith Slater

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
The easiest thing for you to do would be to have a preview button and name it preview
then in the php script processing you form have
if ($preview) {
//preview code goes here
} elseif ($submit) {
//submit code goes here
}
HTH
George

Everybody has got to be somewhere

Reply to this topic