PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I know if magic quotes is switched on?


You can find this out with the function
get_magic_quotes_gpc which will return 1 if the setting is on and 0 if off.

Use it in an if clause to determine what to do with data before entering in a database, like this:
<?php
if (!get_magic_quotes_gpc()) {
    
$mydata addslashes($mydata);
} else {
    
//do nothing: slashes added automatically
}
?>



ASK A QUESTION

More forms PHP Questions

DYnamic Dropbox when I select a value it has to add a textbox to a specific position in the form how do I do it?? If I could change the dropbox in a textbox and make it add Textboxes depending on the number typed it would be even better but dont think th

How can I check a value entered in a field on my form is a number?

This may seem simple but I am just starting out. After the action of my submit button on my html page sends the user and the information to my php page how do I get the user back to the page with the form without having to get the user to have to click o

PHP program to register students' record

Can anyone made process.php of contact form here is contact form HTML and CSS code. -------------------------------- HTML -------------------------------- Name Phone



Custom Search