.html file extension required + redirection
Posted by: sjeroon (---.cache.isnet.net)
Date: April 13, 2008 09:25PM

I've developed a website and I use WAMP as a server. Everything works, but I have to enter the whole domain_name/page.html when I want to view it in a browser.

1) What can be done to make it unnecessary to include the .html portion?
2) What can be done to redirect the URL entry:

domain_name.net to
domain_name.net/home.html

Thanks for any advice.

Selwin

Options: ReplyQuote
Re: .html file extension required + redirection
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: April 13, 2008 09:33PM

to get ride of page.html



name the file index.html

then domain_name/ will bring up ur page



is this all u wanted?



Edited 1 time(s). Last edit at 04/13/2008 09:33PM by stevenmartin99.

Options: ReplyQuote
Re: .html file extension required + redirection
Posted by: sjeroon (---.telkom.co.za)
Date: April 14, 2008 09:08AM

Hi

Thanks for your quick response. It worked first time. Much appreciated.

The only last thing I'm struggling with and don't know the cause is this:

I have a php site which accepts user input: username and password using the following code:

$user_input=$POST['input_username'];
$user_pass=$POST['input_password'];

However, opening the PHP in the browser, you can't click anywhere in the text box to enter the text (for any of the username or password fields), but only on some portions of the text box border. This seems like a strange bug ???

Have you had this problem before?

Thanks for any comment / advice.

Cheers,

Selwin

Options: ReplyQuote
Re: .html file extension required + redirection
Posted by: toivo (---.nsw.bigpond.net.au)
Date: April 14, 2008 10:14AM

Hi Selwyn,

By 'PHP' do you mean the form you developed? I would say a lot depends on how you set up the form which posts the input fields back to the server. Here is a site you can find some examples: [www.w3schools.com]

Another good method is to study the source code of an Open Source application written in PHP.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: .html file extension required + redirection
Posted by: sjeroon (---.telkom.co.za)
Date: April 14, 2008 10:45AM

Hi Toivo,

Thanks, I'll give it a go.

Options: ReplyQuote
Re: .html file extension required + redirection
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: April 14, 2008 05:14PM

hi . First of all.. Ur code above is not a form. It does nothung of the sort. All those two lines do is to store a posted value as a variable. And even at that they are written wrong. It shud be $_POST

Options: ReplyQuote


Sorry, only registered users may post in this forum.