Forums

PHP

This topic is locked

addslashes with Impakt + UD?

Posted 28 Feb 2002 02:55:50
1
has voted
28 Feb 2002 02:55:50 Robert Landrigan posted:
Is there a way to submit data from a form formated with addslashes when you use the Insert Record behavior? I know you can tell UD to stripslashes, but am missing a means to do this w/o creating seperate pages and manualy coding. Tired of having to run a javascript command to strip out offending characters.

Replies

Replied 03 Mar 2002 03:21:38
03 Mar 2002 03:21:38 Tim Green replied:
You could try to add the slashes immediately after your form has been submitted...

At the top of the processing page add a block similar to this:-

<?php
if (isset($MM_insert)) {
$myField = addslashes($myField);
}
?>

I've not tested this but it should work....

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic