dreamwest Posted May 22, 2009 Share Posted May 22, 2009 How can i $_POST an id without leaving the page im on Basically i want to post id "486" to page add.php add.php?id=486 I can have a link on the page im currently on like this: <a href="javascript:void(0)" onclick="add(486)">Add</a> Im not sure how to go about it Link to comment https://forums.phpfreaks.com/topic/159243-help-with-post/ Share on other sites More sharing options...
RichardRotterdam Posted May 22, 2009 Share Posted May 22, 2009 uhm ajax maybe? Link to comment https://forums.phpfreaks.com/topic/159243-help-with-post/#findComment-839852 Share on other sites More sharing options...
Axeia Posted May 22, 2009 Share Posted May 22, 2009 Yes ajax. Just google ajax post and something useful should show up. Your example is however a GET example instead of post, this is however recommended in Yahoo's best practices as GET makes one page request as oppossed to POSTs two requests. Link to comment https://forums.phpfreaks.com/topic/159243-help-with-post/#findComment-839892 Share on other sites More sharing options...
dreamwest Posted May 22, 2009 Author Share Posted May 22, 2009 Had a look at a couple of ajax demos - impressive. Think ill learn it Link to comment https://forums.phpfreaks.com/topic/159243-help-with-post/#findComment-839893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.