/ Published in: PHP
URL: http://www.meelsonwheels.com
Created for my own purposes, thought I'd share though ;)
copy paste at the top of your file and it does the magic :)
Expand |
Embed | Plain Text
<?php function clean($value) { return $value; } ?>
Comments
Subscribe to comments
You need to login to post a comment.

What do the extract rows do?
This won't work if you use arrays in your forms, i.e.;
Orange Lemon Pear
You need to introduce a line to check if the $value is an array, e.g;
if(is_array($value))
sorry, that should have read;
<input type="checkbox" name="fruits[]" value="orange" /> Orange <input type="checkbox" name="fruits[]" value="lemon" /> Lemon <input type="checkbox" name="fruits[]" value="pear" /> Pear
The tags were stripped