|
Posted by Johnny BeGood on 05/10/07 05:54
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" <matt.farey@gmail.com> wrote in message
news:1178737752.687352.189960@e65g2000hsc.googlegroups.com...
> On May 9, 7:50 pm, Michael Fesser <neti...@gmx.de> 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" ...
>
[Back to original message]
|