Pass PHP session variable into HTML form -
i have session variables posted form on php page, , can echo them using:
<?php $_session['newslettersignup'] = $_post['newslettersignup']; echo "email = ". $_session['newslettersignup']; ?>
but can't seem insert these html form field:
<input type="text" name="email" id="email" size="36" "value="<?php echo $_session['newslettersignup'];?>" class="text-input" onblur="emailval()" />
this should work...the quote before value screwing up
<input type="text" name="email" id="email" size="36" value="<?php echo $_session['newslettersignup'];?>" class="text-input" onblur="emailval()" />
Comments
Post a Comment