Search
Left Quote    Treat your password like your toothbrush. Don't let anybody else use it, and get a new one every six months.
- Clifford Stoll    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Local Host CMS Tut
  This user is offline  Melissa
  Subject: "Local Host CMS Tut" Posted: @ 9:33 pm on May 28 2008   
Member #: 697
Rank: User - (2)
Since: 05/28/08
Posts: 2

Okay I've gone over and over the tutorial Complete Members System. I am doing a project for school and it is creating a blog from scratch. I have most of it done already and wanted to add a log-in/register a long with a log out. I am testing it on my localhost first before uploading it to my server.

On the registration.ph p I fill in everything and push submit...and I get this
FORBIDDEN
You don't have permission to access /blog/< on this server.
Even when I test the fields by leaving a password and such out I get this same page.

Which is this url http://localhos t/blog/%3C?%20$ _SERVER['PHP_SE LF'];%20?%3E

I figured it is this line that i need to change:

Code:
<form name="sign up" action="&l t;? $_SERVER['PHP_S ELF']; ?>" method="PO ST">



But I don't really know.

Edited at 09:51:24 pm on 05/28/08


    Viewed: 7,577 Times | Reply to This | To top
  This user is offline  Genius
  Subject: "re: Local Host CMS Tut" Posted: @ 11:26 pm on May 28 2008    

Member #: 582
Rank: User - (77)
Since: 02/18/08
Posts: 76
From: kmmk

Hmm, I think you didn't enable short php tags. Try this:


Code:

<form name="sig nup" action="& lt;?php $_SERVER['PHP_ SELF']; ?>" method="P OST">< /div>




    Viewed: 7,566 Times | Reply to This | To top
  This user is offline  Melissa
  Subject: "re: Local Host CMS Tut" Posted: @ 12:20 am on May 29 2008    
Member #: 697
Rank: User - (2)
Since: 05/28/08
Posts: 2

  sarvar said...

< i> Hmm, I think you didn't enable short php tags. Try this:

<BR><f ont size=1><u >Code:</u ><BR>& lt;div name="div _box" class="di vCode"> ;<form name="sig nup" action="& lt;?php $_SERVER['PHP_ SELF']; ?>" method="P OST">< /div>


Ah ha! Forgot to put the php in there. Thanks.

EDIT: OKay, I copied the code and now it isn't doing anything but clearing the form. lol



Edited at 12:26:48 am on 05/29/08


    Viewed: 7,561 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Local Host CMS Tut" Posted: @ 3:52 pm on May 29 2008    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

Wheres your code to execute if someone presses the submit button?




-bs0d | AllSyntax.com

    Viewed: 7,533 Times | Reply to This | To top
  This user is offline  Vilice
  Subject: "re: Local Host CMS Tut" Posted: @ 7:58 am on Jul 15 2008    
Member #: 718
Rank: User - (5)
Since: 07/14/08
Posts: 5


Code:

<form name="sig nup" action="& lt;?php $_SERVER['PHP_ SELF']; ?>" method="P OST">< /div>

I just think so




Hostmonster special promo Discount link $4.95/mth - Unlimited storage space, unlimited bandwidth transfer http://hostmons ter.co.in

    Viewed: 7,124 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank