You are here: Re: Posting form contents without having to push the button « PHP Programming Language « IT news, forums, messages
Re: Posting form contents without having to push the button

Posted by shimmyshack on 05/09/07 19:09

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" ...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация