Jump to content

adding variables into url like 'index.php?action=1'


jwk811

Recommended Posts

i had a link that would add a variable to the url once clicked on.. it would look like this:
<a href="index.php?action=1">Click Here</a>
But when someone clicks on it, it doesnt add that action=1 part to the url.. why not? is there some other way to do this or what?
thanks for the help!
You would have to display your code to know why it isn't triggering anything.

Edit:

[quote]<a href="index.php?action=1">Click Here[/url][/quote]

That is wrong. It need to be either:

[code]<a href="index.php?action=1">Click Here</a>[/code]  or

[code][url=http://index.php?action=1]Click Here[/url][/code] if you are using something with BBCode type tags.
oh thats right.. im actually using a button for this which looks like this:
<form method="link" action="index.php?action=register"><input type="submit" value="Click Here"></form>
the other link worked when i tried it but im trying to do this.. can you try to see if this works for you? thanks!

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.