From: MSIHelper at gmail dot com Operating system: WinXP PHP version: 5.2.1 PHP Bug Type: Variables related Bug description: Unexpected T_Variable (New to This)
Description: ------------ Hello - THANK YOU SOOOOO MUCH FOR YOUR ASSISTANCE. (I am NEW to ALL this, so PLEASE excuse my inability to explain the Right Details) An aquaintance, Mr. Lyles ([EMAIL PROTECTED]) who is a Great Computer Networker/Repair/etc. is helping me to Automate the SignUP & Login of my NEW site www.IncomeGains.Bravehost.com _____________________________________________________________________ PROBLEM w/ IGcreate.php (www.IncomeGains.Bravehost.com/IGcreate.php) IGcreate.php (i believe) collects or recieves the inputed data and 1.) EMAILS the New Member with a Message and their access info. 2.) EMAILS Admin with the New Member info. Parse error: syntax error, unexpected T_VARIABLE in xxxxxxxx/incomegains.bravehost.com/IGcreate.php on line 31 Line 31 starts with $MSImsg ALSO, we are using www.Bravenet.com as the Professional Host Server, but I think it is PHP ready, because it at least reads upto line 31 RIGHT? or do we need to install PHP5? Here is the Code: (Do we need to add a Recipient) ???? (Do we need ' before/after names in []), like: $_POST['Email'] ???? (Do we need to take-out .'s and ".s between all the <br> and $_POST) ???? _____________________________________________________________________ <?php include("config.php"); // connect to the mysql server $link = mysql_connect($server, $db_user, $db_pass) or die ("Could not connect to mysql because ".mysql_error()); // select the database mysql_select_db($database) or die ("Could not select database because ".mysql_error()); // check if the username is taken $check = "select id from $table where Email = '".$_POST[Email]."';"; $qry = mysql_query($check) or die ("Could not match data because ".mysql_error()); $num_rows = mysql_num_rows($qry); if ($num_rows != 0) { echo "Sorry, the username $Email is already taken.<br>"; echo "<a href=register.html>Try again</a>"; exit; } else { // insert the data into database $insert = mysql_query("insert into $table values ('NULL', '".$_POST[Email]."', '".$_POST[Password]."')") or die("Could not insert data because ".mysql_error()); // send the emails $msg = "WELCOME to the Income Gains," . $_POST[FirstName] . " " . $_POST[LastName] . "!"; //!!!!!!!!!Message that will be emailed to user!!!!!!!!!!!!!!! $subject = "WELCOME to the Income Gains." //Subject of message emailed to user. After this is the stuff that is emailed to you. $MSImsg = "Email: $_POST[Email] <br>Name: $_POST[FirstName] . " " . $_POST[LastName] <br>Zip: $_POST[Zip] <br>Password: $_POST[Password] . "!"; $MSIsubj = "New Member"; mail("[EMAIL PROTECTED]", $MSIsubj, $MSImsg); mail($_POST[Email], $subject, $msg); // print a success message echo "Your user account has been created!<br>"; echo "Now you can <a href=Login.html>log in</a>"; ************************************************************************************************* THANKS FOR ALL YOUR HELP contact info: [EMAIL PROTECTED] I REALLY APPRECIATE IT Reproduce code: --------------- www.IncomeGains.Bravehost.com/IGcreate.php Expected result: ---------------- He made 4 files: config.php, IGcreate.php, createtable.php, login.php When people Register/SignUp (i believe): it goes to the config.php --> IGcreate.php --> then createtable.php inputs information into the SQL Database - we made, so (Login Page's SUBMIT) login.php can verify and let them have access. ************************************************************************************************* THANKS FOR ALL YOUR HELP contact info: [EMAIL PROTECTED] I REALLY APPRECIATE IT -- Edit bug report at http://bugs.php.net/?id=40971&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40971&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40971&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40971&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40971&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40971&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40971&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40971&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40971&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40971&r=support Expected behavior: http://bugs.php.net/fix.php?id=40971&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40971&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40971&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40971&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40971&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40971&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40971&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40971&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40971&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40971&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40971&r=mysqlcfg