Jump to content
xisto Community
cybertron

Php Code Getting \ When Typing ' Or " How to use the Stripslashes Command

Recommended Posts

Line 5 would be:

$from = $_POST['Email');
Needs to be replaced with:
$from = $_POST['Email'];
That should fix the syntax error.

You said you pretty much copied code from a YouTube video, so it's not really your fault on why it contains security issues.

Share this post


Link to post
Share on other sites

How do you know all of these security flaws????

One way to become aware of them is by looking at the changelogs of popular scripts. Another way is by searching for websites made specifically for best practices and vulnerabilities. The PHP manual also has a section on security. You can find other sources here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.