By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,666 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,666 IT Pros & Developers. It's quick & easy.

Auto submit a form in PHP

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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 :
Jul 17 '05 #2

P: n/a

"Scott Castillo" <sc*****@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:mm*@tierramedia.org
Linux User # 160358
Jul 17 '05 #3

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

"Scott Castillo" <sc*****@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

Jul 17 '05 #4

P: n/a
"Scott Castillo" <sc*****@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
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.