Re: Form fields to database and back? [message #174550 is a reply to message #174542] |
Fri, 17 June 2011 15:18 |
bobmct
Messages: 16 Registered: September 2010
Karma:
|
Junior Member |
|
|
Well - another follow-up:
Using your advise this is what the results are:
Data as originally stored in varchar field:
prd ="^ptmdtr-slb.bna.com^";
Data as put back into the varchar field:
prd ="^ptmdtr-slb.bna.com^";
I am using php.5.2.6 (older but I'm locked into it at this point) and
mysql 5.0.25, apache 2.2.11
Upon retrieving the data I use $fld = htmlspecialchars($fld); to display,
and upon storing I use $fld = mysql_real_escape_string($fld); to update.
For what ever reason it appears that the fields are coming back from the
browser (referenced as $fld = $_POST['field_name'];) actually still
encoded.
So you see? I'm at a loss with this (should be minor) issue.
Any more suggestions?
Thanks - Bob
|
|
|