News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

open site page through form filed

Started by apple, August 26, 2004, 04:46:03 PM

Previous topic - Next topic

apple

is it possible to make a form field that when filled with a "page name" and clicked.. redirects visitor to the page he filled...
like this

{form field}...go
if filled like this
(page1}...go is clicked

redirects user to
http://site/page1.htm

i.e some function like this
http://site/{form filed}.htm
with hidden htt://site/...htm
the only thing visile and required to fill is "page1"

[Unknown]

Yes.

<input type="text" id="goLink" /> <input type="button" value="Go!" onclick="location.href = 'http://site/' + document.getElementById('goLink').value + '.htm';" />

This requires javascript to be enabled...

-[Unknown]

apple

what modification should be done to open a folder with this instead of file
thanks

apple

hi unknown
i was thinking if u can help me now it will be gr8....
actually i am in real need of this stuff
thanks


kegobeer

Quotewhat modification should be done to open a folder with this instead of file
Dropping the  + '.htm' should do the trick.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

apple


Advertisement: