Hi i want to make a page that allows a user to type a number or a word like
cat
and it goes to http://www.yoursite.com/cat
or 1
and it goes to http://www.yoursite.com/1
It needs to be so that it can allow fullstops and numbers
Thanks
Hi i want to make a page that allows a user to type a number or a word like
cat
and it goes to http://www.yoursite.com/cat
or 1
and it goes to http://www.yoursite.com/1
It needs to be so that it can allow fullstops and numbers
Thanks
The web in one word.
can any one help?
The web in one word.
With PHP?
If it's HTML, then you just make up a directory and redirect.
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Javascript could be really easy...
<form onSubmit="window.location=window.location+this.page.value;">
<input type="text" id="page">
<input type="submit" value="go">
</form>
Using a PHP backup would be a good idea too.
The code is untested but I THIIIIINK it should work...
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I think he said folder redirection.
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
He said page that allows a user to type something then go there....
Note: numbers are allowed. What's a full stop? Period? that, I think, might work, but it's not expected in URLs. You can, however, convert with javascript, but I'm not sure how exactly. I believe it's str.replace(params).
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Yeah, I don't know why I thought folder redircetion.
I seem to be losing it now.
Well, I think it's
Code:<form onSubmit="window.location=this.elements['page'].value;"> <input type="text" id="page"> <input type="submit" value="go"> </form>
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
hi no i am looking for something it can be php. i want something like this
www.yoursite.com/payment(Price).html
and what ever number they but in it places it where (Price) is.
The web in one word.
Bookmarks