Welcome to Dream.In.Code
Become an Expert!

Join 149,979 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,372 people online right now. Registration is fast and FREE... Join Now!




Parse Error

 
Reply to this topicStart new topic

Parse Error, Help Please

Muskan Messenger
16 Jun, 2002 - 04:42 PM
Post #1

D.I.C Head
**

Joined: 4 Jan, 2002
Posts: 109

I keep getting a parse error when I put a bit of code about 67 lines above it. The parse error is on line 164, I will give you line 154 to line 170:
CODE

$place = "Guestbook";
echo "<FORM METHOD=post ACTION=http://cgi.codebusterz.com/cb/guestbook.cgi>
<INPUT NAME=name SIZE=50 TYPE=text><B>Your Screen Name:<BR>
<INPUT NAME=email SIZE=50 TYPE=text><B>Your E-Mail Address</B><BR>
<INPUT TYPE=hidden NAME=submitaddress VALUE=webmaster@codebusterz.com>
<B>Give us some feedback:</B><P>
<TEXTAREA NAME=feedback ROWS=10 COLS=50></TEXTAREA><P>
<CENTER>
<INPUT TYPE=submit VALUE=SEND>
<INPUT TYPE=reset VALUE=CLEAR>
</CENTER>
</FORM>";
break;
case "affiliatejoin":
$PageTitle = "Code Busterz - The New Era of Gaming - Join Us";
$place = "Join Us";
echo "<font color=#FFFFFF face=Veranda>To join us as an affiliated, please fill out the following form and click submit. For rules and regulations of affiliacy, <a

The error I get is:
Parse error: parse error in /home/codebusterz/www/cbv40/cbmain.php on line 164
Thanks in Advance smile.gif
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Parse Error
16 Jun, 2002 - 04:48 PM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,275



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
First thing I see potentially wrong is you need to put a / in front of the @ in that email addy (I think that's right)

Second is this line:

case "affiliatejoin":

that : needs to be a ; and what is the point of that line anyway?
User is online!Profile CardPM
+Quote Post

Cookie Mobster
RE: Parse Error
16 Jun, 2002 - 04:48 PM
Post #3

nooneenooneenooonee
Group Icon

Joined: 12 Oct, 2001
Posts: 4,723



Thanked: 1 times
Dream Kudos: 18
My Contributions
post the code above that line please, it isn't in the portion you gave...

BTW: chris that line is part of an incomplete switch statement. the case is right to end with a :

CHeers Sam
User is offlineProfile CardPM
+Quote Post

Muskan Messenger
RE: Parse Error
16 Jun, 2002 - 05:28 PM
Post #4

D.I.C Head
**

Joined: 4 Jan, 2002
Posts: 109

I did what you said, still same error, here are lines 141 to 196 for a parse error on 164:
CODE

case "linkback":
$PageTitle = "Code Busterz - The New Era of Gaming - Link Back";
$place = "Link Back";
echo "<font size=2 color=#FFFFFF face=Veranda>Would you like to link back to us at CB? Put the following code on your website!
<br><br><font size=1><center>
<*a href=http://www.codebusterz.com/><*img src=http://www.codebusterz.com/images/cb.gif border=0></a></font></center>
Just remove the stars! It will look like this:
<br><br>
<a href=http://www.codebusterz.com/><img src=http://www.codebusterz.com/images/cb.gif border=0></a><br>
Enjoy!";
break;
case "guestbook":
$PageTitle = "Code Busterz - The New Era of Faming - Guestbook";
$place = "Guestbook";
echo "<FORM METHOD=post ACTION=http://cgi.codebusterz.com/cb/guestbook.cgi>
<INPUT NAME=name SIZE=50 TYPE=text><B>Your Screen Name:<BR>
<INPUT NAME=email SIZE=50 TYPE=text><B>Your E-Mail Address</B><BR>
<INPUT TYPE=hidden NAME=submitaddress VALUE=webmaster/@codebusterz.com>
<B>Give us some feedback:</B><P>
<TEXTAREA NAME=feedback ROWS=10 COLS=50></TEXTAREA><P>
<CENTER>
<INPUT TYPE=submit VALUE=SEND>
<INPUT TYPE=reset VALUE=CLEAR>
</CENTER>
</FORM>";
break;
case "affiliatejoin";
$PageTitle = "Code Busterz - The New Era of Gaming - Join Us";
$place = "Join Us";
echo "<font color=#FFFFFF face=Veranda>To join us as an affiliated, please fill out the following form and click submit. For rules and regulations of affiliacy, <a href=http://www.codebusterz.com/?p=affiliaterules>click here.</a></font><br><hr height='1' color=#000000><br><FORM METHOD=POST ACTION=mailto:webmaster@codebusterz.com><font color=#FFFFFF face=Veranda>Your websites name:<br><INPUT TYPE=text NAME=sitename SIZE=30><br>Your E-mail address:<br><INPUT TYPE=text NAME=email SIZE=30><br>Average Hits per day:<br><INPUT TYPE=text NAME=hits SIZE=30><br>A BRIEF description of your site:<br><TEXTAREA NAME=description ROWS=6 COLS=40>
</TEXTAREA><br />
Site Genre (topic of your site):<br><SELECT NAME=genre SIZE=1>
<OPTION SELECTED>Gaming
<OPTION>Site_Design
<OPTION>Search_Bot
<OPTION>Misc.
</SELECT>
<br><INPUT TYPE=submit>
<INPUT TYPE=reset>
</form><br>
Thank you for your time. You will be notified by e-mail if you are accepted. Please note that it will try to open your standard mail browser to send it.";
break;
case "affiliaterules":
$PageTitle = "Code Busterz - The New Era of Gaming - Affiliate Rules";
$place = "rules";
echo "<font color=#FFFFFF face=Veranda>Rules for affiliacy:<br><li>Must have at least 300 hits a day.<br><li>Must have our button or link somewhere on your site. See <a href=http://www.codebusterz.com/?p=linkback>our link back page</a> for more details.</font>";
break;
case "test2":
do_ssi("member_moment");
break;

EDIT: I found what was wrong, on my MySQL connection thingy I put a : instead of a ;, but I fixed that, now I get an invalid syntax. Whats wrong?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 07:00PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month