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 Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted May 22, 2009 Share Posted May 22, 2009 uhm ajax maybe? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.