mardi 24 février 2015

Passing Text into URL from a Form

I'm trying to insert a variable collected from a form into a URL, but I don't want the "?variable=value" part of the URL.



<form action="http://ift.tt/1tHw5hb echo htmlspecialchars($_GET['entry']);?>/" method="GET">
<input type="text" value="" name="entry" id="entry">
<input type='submit'>
</form>


Is there any easy way to do this? I want the browser to go to the following URL when the user types "whatever"


http://ift.tt/1BOvbmT


Aucun commentaire:

Enregistrer un commentaire