Okay, So I have an HTML form like this.
Then I have that script, the registration.php one.Code:<HTML> <HEAD> <title>Simple reg Test</title> </HEAD> <BODY> <h1>Register below!</h1> <p/> <p/> <form action="registration.php" method="POST"> Name: <input type="text" name="UNAME" /> EMail: <input type="text" name="EMail" /> Choose your character type: <select name="CType"> <option value="Warrior">Warrior</option> <option value="Mage">Mage</option> <option value="Rogue">Rogue</option> </select> If you were referred to this game, input their name below: <input type="text" name="Ref" /> <input type="submit" /> </form> </BODY> </HTML>
My problem is this. Neither POST or GET will display the variables right. When I try to echo something like this:Code:<? php $link = mssql_connect ('DCL','TMS','TMSMonkey'); if( !$link ) { echo 'Something went wrong with SQL Server Connection.'; } else { echo 'We\'d be registering someone right now with these credentials.'; echo $_GET["UNAME"]; echo $_GET["EMail"]; echo $_GET["CType"]; echo $_GET["Ref"]; } mssql_close($link) ?>
I getCode:echo '<p>' . $_GET["UNAME"] . '</p>'
as output. When I just try the individual POST and GET's they give me a blank page. Yet, as seen in the URL being sent, the values are there. What's up with this?Code:$_GET["UNAME"]. </p>
Code:file:///D:/Server/Webhome/testing%20grounds/registration.php?UNAME=Coop&EMail=X%40aol.com&CType=Warrior&Ref=Alzan




Reply With Quote