Nexus10 Posted July 12, 2010 Share Posted July 12, 2010 What I want to do is the following: - Make a hyperlink a post sort of function (like a form) so I can use $_POST to capture the assigned value in my processing form. - Second problem: the values will be similar and could be the same for the different links needed, how would I distinguish between the user selecting link 1 which has a value of 4 say (from the db), while link 2 also has a value of 4? Quote Link to comment https://forums.phpfreaks.com/topic/207484-dynamic-links-and-assigningcapturing-their-values/ Share on other sites More sharing options...
Nexus10 Posted July 12, 2010 Author Share Posted July 12, 2010 Quote Link to comment https://forums.phpfreaks.com/topic/207484-dynamic-links-and-assigningcapturing-their-values/#findComment-1084803 Share on other sites More sharing options...
gwolgamott Posted July 12, 2010 Share Posted July 12, 2010 exactly... ??? What have you tried? I'm not sure I've tried to send link with $_POST before, I'm assuming you mean instead of having a link like page?=link1.php I suppose you could have formatted buttons that look like links, but that's a round about way. What exactly are you processing with a link anyways besides the value of the link? For the second problem if you do end up using formatted buttons, hidden fields could solve this as well. With Divisions and some CSS and lots of work this is do able with using a series of forms that look like links... and if created dynamically wouldn't be all that time consuming. Quote Link to comment https://forums.phpfreaks.com/topic/207484-dynamic-links-and-assigningcapturing-their-values/#findComment-1084813 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.