Re: Posting form contents without having to push the button
- From: shimmyshack <matt.farey@xxxxxxxxx>
- Date: 9 May 2007 12:09:12 -0700
On May 9, 7:50 pm, Michael Fesser <neti...@xxxxxx> wrote:
.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.txthttp://www.iana.org/assignments/media-types/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" ...
.
- Follow-Ups:
- Re: Posting form contents without having to push the button
- From: Johnny BeGood
- Re: Posting form contents without having to push the button
- References:
- Posting form contents without having to push the button
- From: Johnny BeGood
- Re: Posting form contents without having to push the button
- From: shimmyshack
- Re: Posting form contents without having to push the button
- From: Michael Fesser
- Posting form contents without having to push the button
- Prev by Date: Re: PHP IDE
- Next by Date: Re: Need help with some OO php
- Previous by thread: Re: Posting form contents without having to push the button
- Next by thread: Re: Posting form contents without having to push the button
- Index(es):