mikosiko Posted August 31, 2012 Share Posted August 31, 2012 Ok so it worked when removing the tags. Why did we put them in there in first place? // Those tags WHERE NOT a suggested code, they were place there by mistake while Psycho was using the editor trying to mark the code and make it more clear for you most likely (those tags are in the 2nd line of the online editor tools)... // The Moral: Don't copy/paste without understand what you are doing ... The only thing to test now is to be sure that everything is being written to the database table before the user gets the e-mail. // And you should follow the recommendations of the second answer from shlumph (Replies #3 and #4) regarding to sanitize your input before the INSERT ..................... Quote Link to comment Share on other sites More sharing options...
Christian F. Posted August 31, 2012 Share Posted August 31, 2012 White_Lily: The e-mail tag is an artifact from the forum software, and most likely a misclick byPsycho. Notice how the text between those two code blocks is linkified, as a mailto: href. As mikosiko pointed out above. SalientAnimal: You had a syntax error, which means your PHP code cannot be parsed because you're either missing something or have something out of place. This is a basic error message, and it even tells you where it happens. Debugging a syntax error is a fundamental requirement for being able to write PHP code, and your failure to do so suggest you're not familiar enough with the PHP syntax. That's why I would recommend you to look over the PHP manual again, read up on how the PHP syntax is constructed, and what gives syntax errors. Then take a second look at the code you have, and the actual problem should be apparent. Edit: OK... Missed a whole page on this one, but my comments are still valid. So I'm going to leave the post as is. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.