Thread: HTML advanced question

  1. #1

    HTML advanced question

    A friend of mine is trying to get a Tottenham Hotspurs fansite up and running. He also made a custom 404.htm file (which appears each time a non-existing page is requested). When that page appears, in the address bar it gets like this:


    What I want to know is how can I make the second argument (theinvalidfile.html) appear on the website? I consider myself an expert on HTML, but I have never seen anything like this...

    PS: It's just a regular html page, no php, asp or anything.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    The '?' symbol is a seperator between a page path and the params that are sent to the page

    Look at the following

    <input value="Hello World" name=param>
    <input type=submit value="Go">
    That will add "?param=Hello+World" to the end of the URL...

    You need a form of CGI to take proper use of this though....simple html is not much use here

    Try looking at ASP, JSP, PERL, PHP or one of the other CGI favorites

  3. #3
    Yeah, I know all of that, but I think it's the server that adds that to the end of the address when it redirects to the 404 page... I never really thought there was a way to use variables in HTML, but I thought this was strange... maybe it's just for the fasion...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. Question about binary trees and files
    By satory in forum C Programming
    Replies: 9
    Last Post: 03-06-2006, 06:28 AM
  3. HTML Question
    By Refresh in forum Tech Board
    Replies: 5
    Last Post: 09-28-2002, 12:53 PM
  4. HTML question
    By Dave18 in forum Tech Board
    Replies: 5
    Last Post: 09-27-2002, 06:36 AM
  5. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 05:10 AM