Question about Wordpress permalinks

Discussion in 'WordPress' started by Toni91, Nov 21, 2012.

  1. #1
    Hi there,For the purpose of tracking visitors I need to add visitors email behind the affiliate link so that i created a simple form-something like this forrm< action="http://affiliatelink.com">Email:<input type="text" name="ID"> Submit.<input type="submit">it works fine but the result is something like this http://affiliatelink.com/?ID=email.I would like to rid off this ugly ?ID= part of the link.The permalinks are set up to "post name" in wordpress permalinks settings and all other links are fine.
     
    Toni91, Nov 21, 2012 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #2
    Hello, please paste here all your code. I am not really sure what is this supposed to do.
     
    Devtard, Nov 21, 2012 IP
  3. Toni91

    Toni91 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    oK!I have an affiliate link for instance http://affiliatelink.com.My goal is to create a simple email form and when you type your
    email and press the submit button http://afilliatelink.com/youremail to be sent to the browser.For the purpose i created this form in one of my wordpress pages:

    <form action="http;//affiliatelink.com"> Email:<input type="text" name="ID"> Submit:<input type="submit" > and the result is
    http://affiliatelink.com/?ID=youremail.I just want to rid off this ?ID= part.I am aware that ID comes from the name.All other permalinks in my site are fine except this created from the <form>
     
    Toni91, Nov 21, 2012 IP
  4. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #4
    Well, it can be done via PHP (or Javascript). After submitting the form the script will retrieve the e-mail and redirect the browser to a new loaction.

    I can help you with the PHP script, but WP doesn't support executing PHP code in posts without using a plugin. So make it work or ask JavaScript experts in appropriate forum to help you with this.
     
    Devtard, Nov 21, 2012 IP
  5. Toni91

    Toni91 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Actually it will help me.I could create this page as a separate template where this PHP code can be executed.But i want to know where this ?= come from.
     
    Toni91, Nov 21, 2012 IP
  6. kashishjain

    kashishjain Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hey, can you explain it a little bit more because am looking to do something similar to this.
     
    kashishjain, Nov 24, 2012 IP