Whats the best iPage web host site with best web design....?

Click Here To View All Answers...

First question I have is Whats the best iPage web host site with best web design....? Many thanks for any answer. Second question.. Hello i'm not sure where this actually needs to be placed but what I am needing is some way of having a user name/password protection on a certian page of mine...i use frontpage 98 for my iPage site and can't upload .htaccess and .htpasswd files so I am assuming that the iPage site don't support them or something...frontpage gives me an error when trying to import these there a way to accomplish the same thing w/o using these files so that only certian people have access to the page??...some detailed help on this will be needed cause anything out side of I guess you would call basic html is "greek" to me...i dont have the slightest clue as to what to do for something like this.....thanks all for the help..

Comments (23)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some investigation and get back to you if I discover an decent answer. You should email the people at iPage as they probably could give you help..

Comment #1

He already said he can't do .htaccess because frontpage wouldn't let him......

Comment #2

Yes I know how to use .htaccess and .htpasswd files I am currently using them for the page...but i'm moving the page to another iPage site and can't get them to work there that's why I was trying to find a way to do this w/o using .htaccess/.htpasswd files....anything but ASP can be used on this site...but as far as writing a script for it in php or any other language i'm completely thanks for the advice leoo the .htaccess/.htpasswd files to a great job...just moving to another server to have more options (languages) available to me to use and try and learn..

Comment #3

Oooooops, see my mother always told me to read things through properly, don't why I didnt listen lol.


Comment #4

Try having a look at this downloadable php script (version 1.0).


The instructions are easy to follow, only problem is that your pages have to have .php extensions for it to work, but that's not a problem really, you can just change the extension and it will work like a normal html file, php files can be a combination of html and php, anyway have a butchers, php isn't that hard to learn.


Comment #5

Php can't have teh extension "html" unless the server is setup to parse html as php, which is not recommended. it must have a php if the server is not setup that way...

Comment #6

Here huwey, here's some perl scripts for password protection.

, there maybe one there that you can just thow into the cgi-bin.


" class="msgurl" target="_blank">http://<a href="http://www.hotscript...rotection/</a>.


Comment #7

Would one of you be willing to show me how to change the html over to a php page?? currently it is in html and not sure how to write in would need probably lots of patients lol....or I could just attach the html on here...either way..but would like to atleast try to learn php....the html itself is 9k so to me that is kinda a large html file...or if you wanted you could look at my previous post.


That has the code posted already....and once again thanks for the help on that scoutt..

Comment #8

If you use that page for the php and password protect that page, then we have some work to do..

You have to decide on what form of protection you want. cookies or through the db...

Comment #9

What way would be easiest to do....there will only be 1 user name and 1 password....see I run a group that hosts euchre tournaments online and all the people that host (run) the tournaments will have the user name and the password...and this way not everyone will be able to access the iPage site to submit the winners and emails and such...this way I wont have to worry about if it's a.


Tournament result or not....cause this page will be linked from our main page that everyone will have access to....and as long as you are willing to work with me on this and have somme patients with me i'll do the best I can with it w/o you having to do anything....Thanks..

Comment #10

Ok, if there is only 1 password and username it can be set pretty easy. so is that the page you are usnig to login with? the one on the other thread?..

Comment #11

Well the way it currently is done is like.


Using the .htaccess type of a log a seperate login page would be fine if that is whats needed...unless you can link right to the page but a login would be required for the page to show kinda like the htaccess...will just need to know how it will work....dont want the page that the login is for to be accessable w/o signing in....if that makes since..

Comment #12

Ok, so we want to create a seperate login page. first you need to decide if you want to use a cookie or jsut a session or both or both and a db?.

Either way it shouldn't be to tough..

So you create your form that you want people to enter the username and password in. that should be easy for you..

Next we need to decide, actually what is the page that you want to password protect? does it have a form on it too?.

But anyway, at the top of that page you are protecting you need to insert some code so that somebody can't just type the address to that page and see if while bypassing the login page..

This is pretty easy. if you decide a cookie then it is something like this.

That will tell them if there is no cookie then we take them to the login page. you can do the same with the session too..

So we need to get password and username from the login form. this looks like this.

Understand? you will also need to change the extension of this page we are protecting to filename.php..

Comment #13

Ok about the page that I want is just that form that is posted in the other thread.

And at the top of that is where this would go right??.

And this.

Would be on the sign in page right?? and the coding for the page (assuming it can be in just reg. html) would go on the next line after //the rest of the page here.

Now as far as the page itself (the one that will be protected) it's currently named tourney_results.html but i'm gonna change it to just index.html but from what your saying just rename it to index.php ??.

And the db would be needed to compare if the user/pass combo was correct wouldn't it?.

Sorry for all the questions like I said I honestly dont really have a clue how to do you know of a iPage site that will "tutor" someone on how to do this?...something free of

Comment #14

Hmm, well no, don't name the file index.php. the reason is because that is the default page for the folder it is in. the code I gave all goes into the page you wanted to protect. but you have to decide if you want to use the db or the cookie way, no reason to do both if you are going to have only 1 password and username..

I would do the cookie way but it doesn't matter..

You would have to search the net for a tutorial as I don't have any..

Just make the loginpage and have the from action point to the page you were going to call index.php. name it like this.


Comment #15

Ok not sure if i'm getting this or not but here is what I got...i made one called index.php (to be the login screen) with this in it:.

Then I have the for named (as you can see from above) results.php and it has this in it:.

Now no matter what I put in for the user/pass I get a screen saying this:.

Parse error: parse error in /home/virtual/site63/fst/var/www/html/disney/tourney_results/results.php on line 53.

Also is it ok to make notepad the default viewer for php files?..

Comment #16

Oh btw if you need/want to move this to the server side forum go ahead..

Comment #17

Well surprised that is all you get..

Change this line.

} elseif ($_POST['username'] == "your_username") AND ($_POST['password'] == "your_password") OR ($_COOKIE['username'])){.

With this line.

} elseif (($_POST['username'] == "your_username") AND ($_POST['password'] == "your_password") OR ($_COOKIE['username'])){.

Also you have to put this.

At the very top, before the <html>.

Actually try this..

You had some more errors because the the header() functions can't go after <html> or anything else that gets outputted to the browser. one of the rules you learn on your journey...

Comment #18

Ok cool I seen what the difference was between what you posted and what I had...then I just copied and pasted what you posted....just one thing tho this: //the rest of the page here is showing up on the page...can that be taken out and it work fine still?...thanks for the help scoutt your awsome..

Comment #19

Actually scratch that last post it will

One question....the ("username", $_POST['username'], time() + 43200) controls how long the cookie stays on the computer right?? so if I only wanted it to stay for say like 2 hours then I would put ("username", $_POST['username'], time() + 7200) right?..

Comment #20



Hi again huwey, don't know if you had a look at the link to the php protection but I would give it a go, basically all you need do is download the script, alter a few things like adding in the user name and password, you can also alter a few things in the html( see php is basically the interactive side of web pages, the layout is still in html, so the php files still have html in them which you can alter with no problem).

Once you have aletered any html layout in the script and changed the login, all you need do is change your page you want to protect to a php page, ie. instead of protectedpage.html change the extension to protectedpage.php, once you have done that you add a small line of php code into your protected page, you add it in before anything else, even before the doctype!.

This is the line of code you will be adding.

<? include("protection.php"); ?>.

So when someone goes to your protected this little line of php code grabs that person and takes them to a login page, they login with your selected user and password and then is sent back to your protected page..

With the script download is a login page whcih you can change the appearance of how I mentioned before, it's not bad actually you could leave it as it is, and then you upload it all to your server..

Any questions please ask.


Ps here's the link again.


Remember it's version 1.0 you want!.


Comment #21

Ok I got a question for ya leoo (or anyone else that would know) it's a little off on a tangent but has a little to do with something you mentioned in my contact.php it has this line in it.

// This is the message that appears when submitting.

Echo "Thank You for your tourney results and as always thanks for iPage hosting with us";.

Can everything between the ""'s be html coding or maybe another addy placed in there and it load that page up?..

Comment #22

Hey Huwey,.

Yes you can change the time the cookie stays on the computer to 2 hours, and you have it right. also you can take the "// rest of page here " out as I forgot to move that up in to the php section..

Also you can change anything you want in the echo statements. just remember that is you add " inside an echo you have to escape them like this \".

So if you add html to an echo line then I twoul dbe like this.

Echo "<form action=\"somescript.php\" method=\"post\">";.

You should get the idea form the that...

Comment #23

Wooooooooooooooooooooooooooohoooooooooooooooooooooooooooooo I got's all working great now....thanks all..

Comment #24

This question was taken from a support group/message board and re-posted here so others can learn from it.