Jump to content

Dynamic links and assigning/capturing their values


Nexus10

Recommended Posts

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.