I'm working on my first PHP script. It's a panel for my rare values. I'm only trying to get the forum to work atm, then I am going to integrate it into the values. Remember this is my first, and it's probably 100% wrong, so don't yell at me (dentafrice -cough-) lol jk
Here it is:
rare_edit.html
rare_edit.phpCode:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/xml; charset=utf-8" /> <title>HabbDance Rare Value Database</title> </head> <body> <h2>Rare Value Editor v1</h2> <form action="rare_edit.php" method="post"> <fieldset><br /> <p> <label>Which rare would you like to edit today?</label> <select name="rare"> <option value = "Typewriter"> Typewriter </option> <option value = "Throne"> Throne </option> <option value = "HC_Sofa"> HC Sofa </option> </select><br /> What is this rare worth? <input type="text" name="value" /><br /> <label>What is the status of this rare?</label> <select name="status"> <option value = "Increasing"> Increasing </option> <option value = "Stable"> Stable </option> <option value = "Decreasing"> Decreasing </option> </select> </p> <button type = "submit"> Change </button> </feildset> </form> </body> </html>
I keep getting this when I submit the forum:Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/xml; charset=utf-8" /> <style type="text/css"> <!-- body { font-family: Verdana; font-size: 12px; --> </style> <title>HabbDance Rare Value Database</title> </head> <body> <h2>Rare Value Editor v1</h2> <? php //gather the variables $rare = $_REQUEST["rare"]; $value = $_REQUEST["value"]; $status = $_REQUEST["status"]; print "You have succesfully update $rare to $value, $status." ?> </body> </html>
Parse error: syntax error, unexpected T_VARIABLE in /homepages/34/d237406810/htdocs/wsb4850525601/beta/db/rare_edit.php on line 19
So help please :] Thanks!







Reply With Quote




lol.

