Hello,
i have a form that inserts peole into database, when they have been inserted they go to a page which shows all information that was inserted. But if anyone uses a ' apostopy, the show page dosplays this
name''s
the db info is right, but whats happeneing is that people are telling me their is a mistake because of the \ anyway to get rid of this
exapmle of input page
<tr valign="top" bgcolor="#FFFFFF">
<td><font size="2" face="Arial, Helvetica, sans-serif">Business Name:</font></td>
<td> <font size="2" face="Arial, Helvetica, sans-serif">
<input name="busName" type="text" id="businessName" size="35" maxlength="75">
</font></td>
</tr>
example of showing inouted results page
<td width="249"><strong><font size="2" face="Arial, Helvetica, sans-serif">Business
Name: </font></strong></td>
<td width="238"><? echo "$busName"; ?></td>
</tr>
\ inserted when user input '
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
just:
Code: Select all
<? echo stripslashes($var); ?>- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact: