This is a discussion on "submit part of a url through a text box" within the Web Page Design section. This forum, and the thread "submit part of a url through a text box are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
submit part of a url through a text box
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
submit part of a url through a text box
Hi
Can anyone help. I have a website that I want people to use to access their website's statistics by simply entering their domain name into a text box, click submit and be taken to their statistics page. For example Someone has the domain name cats.co.uk. So they enter 'cats.co.uk' into the text box, click submit and it loads up http://cats.co.uk/statistics Every domain name's statistics url is set up the same way. eg http://domainname/statistics Does anyone know how I could do this? Please dont worry about security issues. Id rather a solution that uses html (and php if need be). Im trying to avoid Javascript (if possible) and setting up a database to store domain names. I look forward to your answers Thanks Mark |
|
|
|
|||
|
Re: submit part of a url through a text box
Oh nvm, i think i mis-understood.
A quick google returned this to go to a url, just needs a little tinker. Quote:
Last edited by Bocaj; Apr 11th, 2008 at 00:37. Reason: Mis understood |
|
|||
|
Re: submit part of a url through a text box
Thanks Bocaj,
Its a start! Further than I got! |
|
|||
|
Re: submit part of a url through a text box
Has anyone got any ideas???
|
|
||||
|
Re: submit part of a url through a text box
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: submit part of a url through a text box
Thank you moderator, that is really helping and it works great! In terms of enhancing it:
Is there anyway of having the 'http://' hidden? And an error message to appear should they enter their domain wrongly? Thanks Mark |
|
|||
|
Re: submit part of a url through a text box
sorry for not getting back to it sooner... been busy today
E.g. http://www.yoursite.com/theresite.com/statistics/ So, insert the http:// for them...
But i'll look into it And as for checking to see if the domain is entered incorrectly, can you elaborate on this a bit? Because i can already interperate it in a few different ways =/ Last edited by Bocaj; Apr 11th, 2008 at 21:40. Reason: Removed the uneccisary value="" |
|
|||
|
Re: submit part of a url through a text box
Hi Bocaj,
Thank you for your hardwork! Your version solved the hiding the http:// part which is great! The error message was for if they accidently entered the wrong domain. But I dont think I can get round this. I will just put a message by the box to let users know to accuately put in their domain name. Im really pleased with that script now. Does that script use javascript? And if so, and someone has javascript disabled, will the script not work? Thanks again for your hard work mod and Bocaj. Mark |
|
|||
|
Re: submit part of a url through a text box
Oh one other thing :o) You have to physically click on the 'go to' button to go to thye stats page. Is there a way to just press return and it will submit the address?
|
![]() |
| Tags |
| box, form, html, link, password, php, text, url |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| submit many forms - auto submit the same form many times | divs | JavaScript Forum | 0 | May 24th, 2007 10:10 |
| SEO / SEM glossary Part 3 | webulletin | Search Engine Optimization (SEO) | 2 | Nov 22nd, 2006 23:33 |
| SEO / SEM glossary Part 2 | webulletin | Search Engine Optimization (SEO) | 0 | Nov 2nd, 2006 07:59 |
| SEO / SEM glossary Part 1 | webulletin | Search Engine Optimization (SEO) | 1 | Oct 19th, 2006 04:36 |