This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > August 2007 > html forms





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author html forms
- Anne

2007-08-21, 3:15 am

Is there a way to create an html form that would complete the following
function:

1. User enters data (this is a test) in search box and clicks submit.
2. When the user clicks submit, he is automatically redirected to the
webpage http://www.mydomain.com/this-is-a-test.htm Note the spaces are
replaced with hypens and the webpage is the one he typed in the search obx.



Ronx

2007-08-21, 6:15 am

Take a look at http://www.rxs-enterprises.org/tests/jspass
The simple method (at
http://www.rxs-enterprises.org/tests/jspass/simple.htm ) is what you are
looking for, but the method on this page will stop the user seeing a 404
error if they type in an incorrect page name. This will need to be
adapted to remove the userid field.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/




"- Anne" <Anne3948@hotmail.com> wrote in message
news:0rvyi.75462$fJ5.54934@pd7urf1no:

> Is there a way to create an html form that would complete the following
> function:
>
> 1. User enters data (this is a test) in search box and clicks submit.
> 2. When the user clicks submit, he is automatically redirected to the
> webpage http://www.mydomain.com/this-is-a-test.htm Note the spaces are
> replaced with hypens and the webpage is the one he typed in the search obx.


- Anne

2007-08-22, 10:15 pm

Thanks, the simple method looks like almost exactly what I need. The only
issue with it is if you type in a phrase such as "this is a test", you are
sent to www.domain.com/this%20is%20a%20test.htm.

The spaces are replaced with %20.

I know there are hacks out there to replace %20 with hypens, I'll have to
see if I can find one.



"Ronx" <ronx917@hotmail.com> wrote in message
news:%23ru0zi84HHA.1164@TK2MSFTNGP02.phx.gbl...
> Take a look at http://www.rxs-enterprises.org/tests/jspass
> The simple method (at
> http://www.rxs-enterprises.org/tests/jspass/simple.htm ) is what you are
> looking for, but the method on this page will stop the user seeing a 404
> error if they type in an incorrect page name. This will need to be
> adapted to remove the userid field.
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
> FrontPage Support: http://www.frontpagemvps.com/
>
>
>
>
> "- Anne" <Anne3948@hotmail.com> wrote in message
> news:0rvyi.75462$fJ5.54934@pd7urf1no:
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews