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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -