Dynamic Linking With a Form?
I'm really how to refer to what I want to do, hopefully I can explain myself.
Basically, what I want to do is create a form, where the person enters their name, then when they hit submit, it takes them to a link that automatically appends their name to the end of the link.
So say the link is "http://www.something.com/". Then the user enters their name, Billy Brown, for example, and when they hit submit, it takes them to "http://www.something.com/billy-brown/".
Does anyone know how I might be able to accomplish that?
URL re-writing, exactly how to implement depends on your host and language.
Yeah, I know that I could rewrite URL's within the site. The link will go off-site though. So it needs to be some kind of a clever form action.
No other ideas how I might be able to accomplish this?
I know that it's going to be one of those. But I really need a little more detail. I can't write from the ground up, but with a few more specific pointers, I should be able to sniff out a solution.
Originally Posted by Fang
Or, if there's even a technical term for what I want to accomplish, that would also be really, really helpful.
<form action="http://www.someething.com/" method="post" name="form1" onsubmit="this.action=this.action+this.folder.value+'/'; this.submit(); return false;">
<label>Your name: <input type="text" name="folder"></label>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)