You are here: Re: Can PHP Post without a form? « PHP Programming Language « IT news, forums, messages
Re: Can PHP Post without a form?

Posted by Sanders Kaufman on 08/03/07 11:52

Larry L [in Honolulu] wrote:
> I have a dropdown list dynamically created in a form by PHP from a MySql
> table. This is the only element on the page. For some records there is only
> a single selection, and if that's the case I'd like to just post that and
> go to the next page. Is there a simple way to do that using POST? I know
> how to do it with GET, but don't like the resulting URLs.
>
> Or is there a simpler method I'm not thinking about?
>
> Thanks,
> Larry

You're looking for a Javascript solution - client side, you know.
There's a submit() function that you can programatically fire in JS to
have the page submit a form.

<a href="javascript:submit();">Submit</a>

It'll retain that hyperlink look and feel, but actually be a post
instead of a get.

 

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

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