unemployment Posted October 29, 2010 Share Posted October 29, 2010 How do I post data when a user clicks a link? I know that for a submit button you just use the name attribute, but I'm not sure how to do it with a link. Link to comment https://forums.phpfreaks.com/topic/217161-_post-a-href/ Share on other sites More sharing options...
kenrbnsn Posted October 29, 2010 Share Posted October 29, 2010 You can put data on the URL which the receiving script would find in the $_GET array. The only way to get the data into the $_POST array would be to use AJAX. Ken Link to comment https://forums.phpfreaks.com/topic/217161-_post-a-href/#findComment-1127819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.