How to prevent form hijacking in PHP? How would you initialize your strings with single quotes or double quotes?

[removed link]

Recommended Answers

All 2 Replies

What does this link have to do with your question? Don't spam, please.
Generally, before putting something in a database, use mysql_real_escape_string, but if magic quotes are on, don't do this. If they might be or not be on (i.e. you're using your code on more than one server) use strip_slashes first.

If it is a simple form, use captcha.
Which can help you to prevent spamming.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.