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 4 29595
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 :
"Scott Castillo" <sc*****@cox.ne t> escribió en el mensaje
news:nHtlc.5761 0$Jy3.10102@fed 1read03...
: 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*@tier ramedia.org
Linux User # 160358
You can't autosubmit with PHP because it's a backend technology. Submit is
a front end action.
"Scott Castillo" <sc*****@cox.ne t> wrote in message
news:nHtlc.5761 0$Jy3.10102@fed 1read03... 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
"Scott Castillo" <sc*****@cox.ne t> wrote in message news:<nHtlc.576 10$Jy3.10102@fe d1read03>...
<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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 code. it is
possible to submit form using javascript or vbscript but i am not
allowed to use javascript or vbscript in my project. so how can i do it
using php code??
|
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 JavaScript:
InputForm.action="URL LOCATION"
InputForm.method="POST";
I think we don't need InputForm.submit(); because <input type="submit">.
|
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, I have a simple form such as the following:
<form method="POST" action="submit.php" name="AForm">
Name: <input type="text" name="Name" length="20"><br>
Age: 15 <a href="age.php">change age</a><br>
<input type="submit" name="submit"...
|
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 should be submitted as if the button is pressed. Is
this correct?
Does this behaviour vary across browsers?
Chris
|
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 shows the minutes and seconds remaining before submission.
We have a fairly tight deadline (by 5PM EST, Friday, June 25); we are
using a "bounty" in the hope of getting a few good responses in a
hurry.
BOUNTY: $200 for first place, plus a $50...
| |
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 JavaScript:
InputForm.action="URL LOCATION"
InputForm.method="POST";
I think we don't need InputForm.submit(); because <input type="submit">.
|
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 type=password maxlength="8" name="password" value="`pss`">
where usr and pss are sent from the previous form.
|
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 get submitted to that url
entered in the text box. Is this possible. I know to submit form by
metioning the action attribute only. How do this with one button but
submitting to different locations on different selection...Can any one
help me...
|
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |