Jump to content

surge42

Members
  • Posts

    3
  • Joined

  • Last visited

surge42's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks folks all great points.. I will test when have half a brain left. Much thanks...
  2. Guys, I'm a newbie. There, I got that out of the way.... I have a form that can be submitted and then modified. The data gets sent to a mySQL db. It's nothing special. The idea is that the user is to click a checkbox located at the bottom of the form that says "I'm finished with my project" when checked the stored value is "yes". Everything works fine the value gets stored and all is well except I can not get the darn thing to echo the chekced value. Below is what I have tried with no joy. <input type="checkbox" name="projectcomplete[]" <?php if ($user_type_detail["projectcomplete"]=='Yes') {echo "checked";} ?>> Why the heck won't it work? The value "yes" is stored. Arrrggggg.... I also tried isset with no joy... <input type="checkbox" name="projectcomplete" <?php if (isset($yes)) { echo 'value="checked"'; }?> > The following code below works perfectly on the form. I have refferenced it but no solution materialized. What can I tell ya.. I'm a newb... I don't have the skills to uncover the solution. input type="radio" class="radio" name="CYSD_Particiapant" value="Yes" <?php if($user_type_detail["CYSD_Particiapant"]=='Yes') echo 'checked=checked';else echo '';?> />Yes<input class="radio" type="radio" name="CYSD_Particiapant" value="No" <?php if($user_type_detail["CYSD_Particiapant"]=='No') echo 'checked=checked';else echo '';?> />No Any help would be very much appriated.
×
×
  • 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.