Jump to content

Problem with text inputs and backslashes


consultantlmu

Recommended Posts

Hi there,

I got a problem since a while, which I thought easy, but it's not.

If I remember well, our admin panel worked fine before the server moving. Windows to Unix.

Now, I tried to put a lot of time the function "stripslashes" in php pages ( only on admin panel ), but it does not work.

It appears that the text in contained into a variable, which is foreached into an other page, and then registered into the SQL database.

<?
openForm($processFile, $_REQUEST["action"], $id, $titre);
showStdText("Nom francophone", "pro_nom_fr", "", 255, $record);
showStdText("Nom anglophone", "pro_nom_en", "", 255, $record);
showHtmlEdit("Description francophone", "pro_description_fr",$record);
showHtmlEdit("Description anglophone", "pro_description_en",$record);
showStdNumber("Prix régulier",  "pro_prix", "", 11 ,$record);
showStdNumber("Prix promo",  "pro_prix_promo", "", 11 ,$record);
showDateToday("Expiration promo", "pro_promo_exp", $record);
showStdNumber("Ordre", "pro_ordre", "", 11, $record);
showStdText("Lien Boutique", "pro_boutique", "", 255, $record);
showHidden("pro_groupe_FK", $_REQUEST["grp_id"] ,$record);
closeForm();
include("incs/footerSubForm.php");
?>

 

Each time we need to insert a new product, we need to write things like that: The new 24\" inch from L\"appeul etc....

Else, mysql returns an error.

If you need other code from files, ask me :)

Thanks for your help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.