Auto submit a form in PHP

This is a discussion on Auto submit a form in PHP within the PHP Language forums, part of the PHP Programming Forums category; Does anybody know how to auto-submit a form in PHP without Javascript? For instance, submit form variables to self, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-03-2004
Scott Castillo
 
Posts: n/a
Default Auto submit a form in PHP

Does anybody know how to auto-submit a form in PHP without Javascript?

For instance, submit form variables to self, validate the data in PHP on
same page, then, if no errors, auto-submit the data via post rather than
URL. Could serialize a few fields to URL, but there is a larger comments
field that I think needs to be posted instead.

Auto-post the form variables possible?

Thanks,

Scott


Reply With Quote
  #2 (permalink)  
Old 05-03-2004
Pedro Graca
 
Posts: n/a
Default Re: Auto submit a form in PHP

Scott Castillo wrote:
> Does anybody know how to auto-submit a form in PHP without Javascript?
>
> For instance, submit form variables to self, validate the data in PHP on
> same page, then, if no errors,


continue with processing the data, which might include writing to a
database, or mailing someone, ...

> auto-submit the data via post rather than URL.


You already have the data (and it is already validated). Why repost and
revalidate?

If there's a validation error stop processing and inform the user.

> Auto-post the form variables possible?


No.

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Reply With Quote
  #3 (permalink)  
Old 05-03-2004
Mauro Morales M.
 
Posts: n/a
Default Re: Auto submit a form in PHP


"Scott Castillo" <scasti2@cox.net> escribió en el mensaje
news:nHtlc.57610$Jy3.10102@fed1read03...
: Does anybody know how to auto-submit a form in PHP without Javascript?

NO :-(

:
: For instance, submit form variables to self, validate the data in PHP on
: same page, then, if no errors, auto-submit the data via post rather than
: URL. Could serialize a few fields to URL, but there is a larger comments
: field that I think needs to be posted instead.

OH! header() function is your friend :-)

Example:

Load you init page.php then evaluate your variables. If variable is validate
then header redirect you new page.

:
: Auto-post the form variables possible?

Explicit NO.

Best regards.

--
Mauro Morales M.
mailto:mmm@tierramedia.org
Linux User # 160358


Reply With Quote
  #4 (permalink)  
Old 05-04-2004
OneSolution
 
Posts: n/a
Default Re: Auto submit a form in PHP

You can't autosubmit with PHP because it's a backend technology. Submit is
a front end action.

"Scott Castillo" <scasti2@cox.net> wrote in message
news:nHtlc.57610$Jy3.10102@fed1read03...
> Does anybody know how to auto-submit a form in PHP without Javascript?
>
> For instance, submit form variables to self, validate the data in PHP on
> same page, then, if no errors, auto-submit the data via post rather than
> URL. Could serialize a few fields to URL, but there is a larger comments
> field that I think needs to be posted instead.
>
> Auto-post the form variables possible?
>
> Thanks,
>
> Scott
>
>



Reply With Quote
  #5 (permalink)  
Old 05-04-2004
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: Auto submit a form in PHP

"Scott Castillo" <scasti2@cox.net> wrote in message news:<nHtlc.57610$Jy3.10102@fed1read03>...
<snip>

> Auto-post the form variables possible?


Perhaps you're looking for Post2Host script ??
<http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51>

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0