473,396 Members | 1,666 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.

Posting form contents without having to push the button

Hi All,

Is there a way to post the contents of a form without having to click on the
Submit button, i.e

<form method="post" action="http://www.whereever.com/ProcessTheData.php">
<INPUT name="Field1" type="text">
<INPUT name="Field2" type="text">
<INPUT name="Field3" type="text">
<INPUT name="EsendexRecipient" type="text">
<TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
<input type="submit" value="Submit">
</form>

Can it be done as follows, are am I going to end up red faced again?

http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .

Any help gratefully accepted

Cheers

May 9 '07 #1
17 2083
At Wed, 09 May 2007 18:08:41 +0100, Johnny BeGood let his monkeys type:
Hi All,

Is there a way to post the contents of a form without having to click on the
Submit button, i.e

<form method="post" action="http://www.whereever.com/ProcessTheData.php">
<INPUT name="Field1" type="text">
<INPUT name="Field2" type="text">
<INPUT name="Field3" type="text">
<INPUT name="EsendexRecipient" type="text">
<TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
<input type="submit" value="Submit">
</form>

Can it be done as follows, are am I going to end up red faced again?

http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .

Any help gratefully accepted

Cheers
No reason to go red faced.

Using Javascript you could send the data to a script once a given field or
number of fields contain values. Why on earth you would want to use a form
in this manner is beyond me. Ask in Javascript groups how to.

If you want the form to be interactive (e.g. the form changes
following a certain choice, or a form field has code completion or
hinting) you could have a look at an AJAX solution. This (it's not
a product but a concept) combines javascript, xml and server-side
scripting to modify part of a page in your browser without having to
reload the complete page first)

AJAX is an acronym for Asynchronous Java And XML.
HTH

Sh

May 9 '07 #2
On May 9, 1:08 pm, "Johnny BeGood" <j...@jbg.netwrote:
Hi All,

Is there a way to post the contents of a form without having to click on the
Submit button, i.e

<form method="post" action="http://www.whereever.com/ProcessTheData.php">
<INPUT name="Field1" type="text">
<INPUT name="Field2" type="text">
<INPUT name="Field3" type="text">
<INPUT name="EsendexRecipient" type="text">
<TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
<input type="submit" value="Submit">
</form>

Can it be done as follows, are am I going to end up red faced again?

http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .

Any help gratefully accepted

Cheers
You should patent this idea before Amazon does: "Zero-Click Shopping."

May 9 '07 #3
Johnny BeGood wrote:
Is there a way to post the contents of a form without having to click on
the Submit button,
Yeah... Press "enter" on any text field!!

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
May 9 '07 #4
On May 9, 6:08 pm, "Johnny BeGood" <j...@jbg.netwrote:
Hi All,

Is there a way to post the contents of a form without having to click on the
Submit button, i.e

<form method="post" action="http://www.whereever.com/ProcessTheData.php">
<INPUT name="Field1" type="text">
<INPUT name="Field2" type="text">
<INPUT name="Field3" type="text">
<INPUT name="EsendexRecipient" type="text">
<TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
<input type="submit" value="Submit">
</form>

Can it be done as follows, are am I going to end up red faced again?

http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .

Any help gratefully accepted

Cheers
your form is set to POST so the URL above
http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .
wont happen,
also this script has a habit of revealing email addresses as they hard
coded in the form, as was the password as well in some old cases.
javascript is a way to POST the form,
<body onload="document.getElementById('form_id').submit( )" >
or use the more traditional method of referencing the form by its
name.

if you wanted to just submit info you could indeed use get.
<script type="text.javascript" src="http://www.whereever.com/
ProcessTheData.php?A=Field1&B=Field2"></script>
that would do, stick it in the head and the data is sent to the
script.
ProcessTheData.php
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
If you users have javascript off, you will need to use an image, if
they have images off, use an invisible iframe.
We arent talking professional solutions here right. We are talking a
bounce page of some sort which is for your own use.

May 9 '07 #5
..oO(shimmyshack)
>if you wanted to just submit info you could indeed use get.
<script type="text.javascript" src="http://www.whereever.com/
ProcessTheData.php?A=Field1&B=Field2"></script>
that would do, stick it in the head and the data is sent to the
script.
ProcessTheData.php
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
JFTR: There are registered MIME types for javascript:

http://www.rfc-editor.org/rfc/rfc4329.txt
http://www.iana.org/assignments/medi...s/application/

Micha
May 9 '07 #6
On May 9, 7:50 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(shimmyshack)
if you wanted to just submit info you could indeed use get.
<script type="text.javascript" src="http://www.whereever.com/
ProcessTheData.php?A=Field1&B=Field2"></script>
that would do, stick it in the head and the data is sent to the
script.
ProcessTheData.php
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );

JFTR: There are registered MIME types for javascript:

http://www.rfc-editor.org/rfc/rfc432...s/application/

Micha
whoops yeah 2 typos
header( 'Content-Type: application/x-javascript' );
(although I use x-, this is only because its the default on apache
2.2.x and why change the worlds most popular server to the "correct"
mimetype, I'll wait till they change it!)
also
<script type="text/javascript" ...

May 9 '07 #7
Shimmy,

Thanks for your help, I want to keep things php, what I've done works just
fine, as you can probably tell I'm fairly new to php and all things similar.

"shimmyshack" <ma********@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On May 9, 7:50 pm, Michael Fesser <neti...@gmx.dewrote:
>.oO(shimmyshack)
>if you wanted to just submit info you could indeed use get.
<script type="text.javascript" src="http://www.whereever.com/
ProcessTheData.php?A=Field1&B=Field2"></script>
that would do, stick it in the head and the data is sent to the
script.
ProcessTheData.php
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );

JFTR: There are registered MIME types for javascript:

http://www.rfc-editor.org/rfc/rfc432...s/application/

Micha

whoops yeah 2 typos
header( 'Content-Type: application/x-javascript' );
(although I use x-, this is only because its the default on apache
2.2.x and why change the worlds most popular server to the "correct"
mimetype, I'll wait till they change it!)
also
<script type="text/javascript" ...
May 10 '07 #8
And you should learn some manners - if you are not capable of making a valid
contribution, don't contribute, you f**king muppet!

"ZeldorBlat" <ze********@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
>
You should patent this idea before Amazon does: "Zero-Click Shopping."
May 10 '07 #9
That works just fine!!

"Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
wrote in message news:f1**********@hercules.cohp1...
Johnny BeGood wrote:
>Is there a way to post the contents of a form without having to click on
the Submit button,

Yeah... Press "enter" on any text field!!

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
May 10 '07 #10
Johnny BeGood wrote:
And you should learn some manners - if you are not capable of making a
valid contribution, don't contribute, you f**king muppet!

"ZeldorBlat" <ze********@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
>>
You should patent this idea before Amazon does: "Zero-Click Shopping."
Yep, you need to learn some manners - and get a sense of humor, asshole.

His contribution was valid - with a subtle amount of humor. Go back to
alt.grouches, where you belong.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 10 '07 #11
On May 10, 1:57 am, "Johnny BeGood" <j...@jbg.netwrote:
And you should learn some manners - if you are not capable of making a valid
contribution, don't contribute, you f**king muppet!

"ZeldorBlat" <zeldorb...@gmail.comwrote in message

news:11**********************@o5g2000hsb.googlegro ups.com...
You should patent this idea before Amazon does: "Zero-Click Shopping."
Yes -- you, too, should get some manners and stop top-posting.

May 10 '07 #12
shimmyshack wrote:
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
Just wondering, where did you get that MIME from?

I thought it was supposed to be:

application/x-javascript

At least "application/javascript" is not obsolete yet.

Then again, I cannot read an RFC to save my life.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 12 '07 #13
-Lost wrote:
shimmyshack wrote:
>should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );

Just wondering, where did you get that MIME from?

I thought it was supposed to be:

application/x-javascript

At least "application/javascript" is not obsolete yet.

Then again, I cannot read an RFC to save my life.
Bah, disregard shimmyshack. I didn't even see any posts beyond yours
until I posted the above.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 12 '07 #14
On May 12, 12:42 pm, -Lost <maventheextrawo...@techie.comwrote:
-Lost wrote:
shimmyshack wrote:
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
Just wondering, where did you get that MIME from?
I thought it was supposed to be:
application/x-javascript
At least "application/javascript" is not obsolete yet.
Then again, I cannot read an RFC to save my life.

Bah, disregard shimmyshack. I didn't even see any posts beyond yours
until I posted the above.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
dont worry, its my fault for being so slap dash with the keyboard.
I actually just copy the apache default, it seems to be very
prevelant, although google get it right as per RFC, so perhaps I could
start to change my coding habits, or at least my mimes.type file!!

May 12 '07 #15
shimmyshack wrote:
On May 12, 12:42 pm, -Lost <maventheextrawo...@techie.comwrote:
>-Lost wrote:
>>shimmyshack wrote:
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
Just wondering, where did you get that MIME from?
I thought it was supposed to be:
application/x-javascript
At least "application/javascript" is not obsolete yet.
Then again, I cannot read an RFC to save my life.
Bah, disregard shimmyshack. I didn't even see any posts beyond yours
until I posted the above.

dont worry, its my fault for being so slap dash with the keyboard.
I actually just copy the apache default, it seems to be very
prevelant, although google get it right as per RFC, so perhaps I could
start to change my coding habits, or at least my mimes.type file!!
Do you keep a MIME list or do you poll an RFC server?

I prefer to keep my own MIME, as required/normally used MIME types don't
change too much in my applications.

The mime.types files I have from Apache 1.3 and 2.x are identical. How
old of an install are you using if it has an obsolete JavaScript MIME type?

Mine is from 2004/07/15 12:34pm (1089909240).

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 12 '07 #16
On May 12, 3:03 pm, -Lost <maventheextrawo...@techie.comwrote:
shimmyshack wrote:
On May 12, 12:42 pm, -Lost <maventheextrawo...@techie.comwrote:
-Lost wrote:
shimmyshack wrote:
should return the correct content-type for javascript.
header( 'Content-Type: text/x-javascript' );
Just wondering, where did you get that MIME from?
I thought it was supposed to be:
application/x-javascript
At least "application/javascript" is not obsolete yet.
Then again, I cannot read an RFC to save my life.
Bah, disregard shimmyshack. I didn't even see any posts beyond yours
until I posted the above.
dont worry, its my fault for being so slap dash with the keyboard.
I actually just copy the apache default, it seems to be very
prevelant, although google get it right as per RFC, so perhaps I could
start to change my coding habits, or at least my mimes.type file!!

Do you keep a MIME list or do you poll an RFC server?

I prefer to keep my own MIME, as required/normally used MIME types don't
change too much in my applications.

The mime.types files I have from Apache 1.3 and 2.x are identical. How
old of an install are you using if it has an obsolete JavaScript MIME type?

Mine is from 2004/07/15 12:34pm (1089909240).

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
I keep my own where it isn't in the apache mime.types file,
even the latest version of apache 2.2.4 gives
application/x-javascript js
which is a bit of a cheek because earlier in the file it has a
reference to
http://www.iana.org/assignments/media-types/
which gives it as
application/javascript
(and has a bit of a whinge: "Various unregistered media types have
been used in an ad-hoc fashion")
so for years I have kept the apache default, trying every now and then
to update, perhaps it is time as Michael says.

May 12 '07 #17
shimmyshack wrote:
On May 12, 3:03 pm, -Lost <maventheextrawo...@techie.comwrote:
>shimmyshack wrote:
>>On May 12, 12:42 pm, -Lost <maventheextrawo...@techie.comwrote:
-Lost wrote:
shimmyshack wrote:
>should return the correct content-type for javascript.
>header( 'Content-Type: text/x-javascript' );
Just wondering, where did you get that MIME from?
I thought it was supposed to be:
application/x-javascript
At least "application/javascript" is not obsolete yet.
Then again, I cannot read an RFC to save my life.
Bah, disregard shimmyshack. I didn't even see any posts beyond yours
until I posted the above.
dont worry, its my fault for being so slap dash with the keyboard.
I actually just copy the apache default, it seems to be very
prevelant, although google get it right as per RFC, so perhaps I could
start to change my coding habits, or at least my mimes.type file!!
Do you keep a MIME list or do you poll an RFC server?

I prefer to keep my own MIME, as required/normally used MIME types don't
change too much in my applications.

The mime.types files I have from Apache 1.3 and 2.x are identical. How
old of an install are you using if it has an obsolete JavaScript MIME type?

Mine is from 2004/07/15 12:34pm (1089909240).

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

I keep my own where it isn't in the apache mime.types file,
even the latest version of apache 2.2.4 gives
application/x-javascript js
which is a bit of a cheek because earlier in the file it has a
reference to
http://www.iana.org/assignments/media-types/
which gives it as
application/javascript
(and has a bit of a whinge: "Various unregistered media types have
been used in an ad-hoc fashion")
so for years I have kept the apache default, trying every now and then
to update, perhaps it is time as Michael says.
Yeah, I just noticed that as well in the mime.types and the RFC.

Definitely time to pay attention to the updated MIME types and not the
old! ;)

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 12 '07 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
4
by: Andy Hutchings | last post by:
Hi everybody - hope you can help out here. I have a form in a database, which is a columnar form from one of the tables in the db - there is a sub-form to the form which is a datasheet view of...
5
by: Dave | last post by:
How do I check in a Windows Forms app if any controls have changed? I have a form that collects data, and I want to prompt the user if they try to exit the app, or load a new file, without saving...
2
by: tshad | last post by:
I want to be able allow our users to push buttons to show and hide hidden grids on my page. The problem is that each one of these pages gets put into the history. There is no need to go back, as...
13
by: johnemmatty | last post by:
I am using an asp page in which i dynamically fill the ACTION property of the form. The problem is that whenever i try to redirect to a html page using the javascript:location, it is getting...
13
by: inpuarg | last post by:
Is it possible to get all controls and all of their children on a Windows form without using recursive methods ?
1
by: mirandacascade | last post by:
1) Module1 has the following delcaration: Public g_frmZZZ as Form Public g_txtForm2 as Variant 2) app has two forms: form1 and form2 3) a command button on form1 opens form2; it also has...
3
by: SoNew | last post by:
To say I'm new is an understatement - but somehow my boss decided I was the one to create a database in Access 2003...I'm nearly there. I have a small problem in that I have locked the main form...
14
by: Tom Cole | last post by:
I have a rather complicated business application that uses Ajax. Part of this form requires uploading documents, which I cannot do using Ajax, so I post the form to an IFrame. This part works just...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
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,...
0
jinu1996
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...
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
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.