Jump to content

[SOLVED] values in array being escaped


tHud

Recommended Posts

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?  :confused:

 

Thanks : :D

Link to comment
https://forums.phpfreaks.com/topic/178725-solved-values-in-array-being-escaped/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.