PDA

View Full Version : Php Help!!!!!


WeBFreaKZ
06-03-2003, 03:41 AM
Ive been trying to create a website with php. Well the Script look like this
<?php

$username = $usercook;
$password = $passcook;
setcookie("usercook", $username);
setcookie("passcook", $password);

require("functions.php");

global $fontString, $tableColor;

if(authenticate($username, $password, 21)) {
echo("
<form action=addClan.php method=post>
<table width=330 cellspacing=0 cellpadding=0 border=0>
<tr><td colspan=2>
$fontString
<center><b><font size=2>Add Clan</font><br><br></b><center>
</td></tr>
<tr><td bgcolor=$tableColor width=50%>
$fontString
<b>Clan Name:</b>
</td><td bgcolor=$tableColor width=50%>
<input type=text size=15 name=clan>
</td></tr>
<tr><td bgcolor=$tableColor width=50%>
$fontString
<b>Leader:</b>
</td><td bgcolor=$tableColor width=50%>
<input type=text size=15 name=leader>
</td></tr>
<tr><td bgcolor=$tableColor width=50%>
$fontString
<b>Website:</b>
</td><td bgcolor=$tableColor width=50%>
$fontString
http://<input type=text size=15 name=site>
</td></tr>
<tr><td bgcolor=$tableColor width=50%>
$fontString
<b>Channel:</b>
</td><td bgcolor=$tableColor width=50%>
<input type=text size=15 name=channel>
</td></tr>
<tr><td bgcolor=$tableColor width=50%>
$fontString
<b>Status:</b>
</td><td bgcolor=$tableColor width=50%>
<select name=status>
<option value=Ally>Ally</option>
<option value=Neutral>Neutral</option>
<option value=Enemy>Enemy</option>
</select>
</td></tr>
<tr><td bgcolor=$tableColor colspan=2>
<br><center><input type=submit value=\"Add Clan\"></center>
</form>
</td></tr>
<tr><td bgcolor=$tableColor colspan=2>
<center><font size=2 face=verdana><b><a href=main.php>Return to main menu</font></b></center>
</td></tr>
</table>
");
}


include("footer.php");

?>





And in the web Page it Looks Like thiS:


$fontString
Add Clan


$fontString Clan Name: <FORM>
$fontString Leader: <FORM>
$fontString Website: $fontString http://
$fontString Channel: <FORM>
$fontString Status: <Ally> <Neutral> <Enemy>



Return to main menu
"); } include("footer.php"); ?>

Please I NEED HELP!!!

piz
06-03-2003, 11:21 AM
It seems that you are not opening the php file over http.
Do you have a server installed?
Do you installed PHP and associated the php files with the php compiler?
which server do you use?
you are opening the phph file with http://.... ?

WA
06-03-2003, 11:22 AM
Hi:
Please read our posting guidelines regarding choosing a descriptive subject for your question: http://www.codingforums.com/postguide.htm