| 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.
 [Back to original message] |