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