parameter passing - unwanted space
Posted: Wed Apr 11, 2007 3:58 pm
i am passing variables from a 'display' page to an 'edit' page as follows:
however on the edit page, for some reason the method parameter is given an extra space, this is proved by the extra %20 at the beggining. i really cant see why this is happening. can anyone see?
thanks
Code: Select all
<?php
echo '<p><a href ="../edit_pages/editrecipe.php?
dishid=' . $dishid . '&
name=' . $name . '&
method='. $method . '&
preptime=' . $preptime . '&
cooktime=' . $cooktime . '
">Edit</a>';
?>Code: Select all
method=%20insert%20herethanks