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!
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.