If i have a custom object, and I want to pass it as the form value in a radio button selection - then I have to do the following;
<input type="radio" name="appNames" value="<?php echo $app ?>"> <?php echo $name ?><br>
Now - this seems to just invoke toString() on my object meaning that when I pick it up later down the line, it is just a String.
Passing the following also does not work - my question therfore is - how can i pass this information to the next page?
<input type="radio" name="appNames" value="<?php $app ?>"> <?php echo $name ?><br>
Would adding it to a session be the correct approach?
Thanks