Please help me with the following php coding
Posted 21 August 2006 - 01:47 AM
echo htmlspecialchars($var2 ); ?>"> ';
Please tell me what is wrong with this code, actually i want to save the value of $var2 in mysql db,but the above code is saving "<?php echo htmlspecialchars($var2 ); ?>" into mysql db.
I appreciate your help.
Posted 21 August 2006 - 02:25 AM
If you are reading the string, shouldn't you already be in a <?php tag?
Posted 21 August 2006 - 02:31 AM
On balance, I think we need to know a bit more about the code if we're to provide constructive help.
Posted 21 August 2006 - 02:38 AM
i have to use the php tag. if you have any sample code to store the html and url values
in mysql db,could you please send to me.
Posted 21 August 2006 - 02:57 AM
for that i used value="<?php echo htmlspecialchars($var2 ); ?>"
if the above is not correct,could you please let me know the syntax for that.
Posted 21 August 2006 - 09:07 AM
$vv2 = 'variable2<input type="text" name="vars2" size="30" value="' . htmlspecialchars($var2) . '">';
If you want to add a variable to a string use the concatenation operator (.)
Is that what you want?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users