tHud Posted October 23, 2009 Share Posted October 23, 2009 I would like to submit some values - back to the same form for checking before processing... <FORM method="post"> <table width="500px" border="1" align="center"> <tr><td>Item</td><td>Cost</td><td>Qty</td></tr> <?php print_r($Invoice); ?> <tr> <td><input type="text" name="Invoice[0]['name']"></td> <td><input type="text" name="Invoice[0]['cost']"></td> <td><input type="text" name="Invoice[0]['num']"></td> </tr> <tr> <td colspan="3"> <input name="action" type="submit" value="Update"> <input name="action" type="submit" value="Process"> </td> </tr> </table> </FORM> I've had a load of problems getting it to work - then I found out about print_r so when I tried using this - I get Array ( [0] => Array ( [\'name\'] => thing [\'cost\'] => 12.50 [\'num\'] => 2 ) ) Any idea why those values are being escaped? What am I doing wrong? Thanks : Link to comment https://forums.phpfreaks.com/topic/178725-solved-values-in-array-being-escaped/ Share on other sites More sharing options...
trq Posted October 23, 2009 Share Posted October 23, 2009 It would appear that your server has magic_quotes_gpc enabled. You should switch it off as it has long been deprecated. Link to comment https://forums.phpfreaks.com/topic/178725-solved-values-in-array-being-escaped/#findComment-942773 Share on other sites More sharing options...
cags Posted October 23, 2009 Share Posted October 23, 2009 You'd prbobably want to turn off register_globals whilst your at it. Link to comment https://forums.phpfreaks.com/topic/178725-solved-values-in-array-being-escaped/#findComment-942775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.