Re: Forcing a Post of data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-05-05 at 00:09 -0700, Richard Kurth wrote:
> How can I force this to be a POST and not a GET
> <a href=customer.php?cid=1&location=customeradd.php> Add Customer </a>
> or is the only way you can pass data with a POST is from a Form submission.
> 
The only way you can send post data is either through the form or using
an AJAX call. In theory, you could have an onclick handler for this link
which calls the AJAX, which then alters the page when it gets the return
value. I wouldn't recommend it though, as the link would stop
functioning as a link. Why do you want to send the data through POST
anyway?


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux