473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 17 '05 #1
4 29569
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

"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: vishal | last post by:
hello friends i have one php script which generates html page containing form. what i want is submit this form using php script. pls give me some idea that how can i submit form using php...
2
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
8
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically...
1
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
1
by: sam | last post by:
Hi All, I have a form with 4 checkboxes and 4 text boxes and one submit button. The form should work such a way when I select a particular checkbox and give a url in text box, the form should...
9
by: NitinSawant | last post by:
I have following HTML page created using javascript jquery, This doesn't work when I click on continue button, help <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.