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

how to i decimal, comma, and $ format a number called from mysql displayed in a table cell using php. This is the call script and this is the formatting script How do I replace the $value=123... with my call script? Thanks

1.want to know simple logic and procedure of FORM VALIDATION? 2.How to check Login and password in PHP?

How do I check that a valid email address is entered?

if i send values to database ,but in that table zeros is added ,how can i rectify the error

I have a form that I need to do two things: send all the input values to a confirmation/pay page, and send to me via email. Payment is based on what the customer picks (naturally). The way I have it set up is the form action goes to the confirmat



Custom Search