Yeah, this can actually be done pretty easy...I'm going to say your site is http://www.mysight. com while showing you how to do it...mainly...because that's what you said
--Place on your default.asp page--
|
|
Thanks Tom. It looks like just what I need. Right now I am just playing with my site by using a Tripod site to get it all figured out before putting it at my real site name that I haven't go tten a host for yet and I couldn't get it to work. It always comes back PAGE NOT FOUND. What is the reason for putting the second code at the top of my page? With Tripod my tittle is at the top and can't put it before that unless I convert it to pure HTML. Is that my problem? I just p ut it below the tittle. All I was supposed to do was change the URL in your example to my URL, Right? And I noticed you said I should capture the PAGE NOT FOUND. Is that only in case someone enters the wrong code or is that my problem why I can't get it to work? I'll go ahead and get my real name hosted but if it is some other problem I'd like to hold off if it is not the probl em. I assume you don't have a typo in your codes you posted. Like I said before I only know the very basic html stuff like text, colors, columns, links, adding pictures so traping a page not found is beyond me. There are just a few odd-ball things I need for my site that I don't under stand. But I'm learning THE HARD WAY. LOL.
Thanks again for the help and if you have any ide as why I get page not found it would be much appreciated.
Post Comments |
|
Last I checked Tripod didn't allow dynamic coding like ASP, which could be why you're getting a n error...does it allow it now???
If you want go ahead and set up your hosting and we'll mak e sure it gets working for you.
This code to put at the top...
--Place at the top of your default.asp page--
<%
If Trim(Request.Form("Code")) <> "" Then
Response.Redirect ("http://www.mysight.com/" & Request.Form("Code") & ".html")
End If
%>
Is actually what recreates the URL and sends them to the page you want.
Post Comments |
|
I'm not sure if tripod allows ASP. But if you say they didn't before then I assume they don't n ow. I went ahead and got a host and will try it in the next couple days. Is there a certain spo t that 2nd code has to be on the top of my page? I know there is the head and the body. Are you saying if that code is in the middle of the page and not at the top that the whole thing won't work? Just curious why at the top is so important. Can't learn if you don't know why. I'll let you know my progress with that code. And I probably will have a couple more code issues as I p rogress with the page. Like I said I have 95% of my page figured out and can do it but those fe w tough code items I just don't get. I do try and do a google search before posting a question here for the answer.
Thanks again.
Haseena Post Comments |
|
Well...what that asp code is doing is redirecting your page. If you put the code in the middle or end of the page then it will load the page before it redirects.
If you place the code at the very top of your page the first thing it will check for is to see if someone hit that submi t button and if they did it will redirect them without loading that page first.
Tom Post Comments |
|