DSchragg
11-25-2012, 07:49 PM
Could someone tell me why this isn't auto filling my email field?
I'm using document.getElementById("form_email").value = '<?php echo $userdata->user_email; ?>';
to try and pre-fill the field but it's just not seeing the field right?
The form's HTML is the following: <form action="" name="SUBMITFORM" id="SUBMITFORM" method="post" onsubmit="return CheckFormData();" enctype="multipart/form-data"> and the field: <input type="text" name="form[email]" id="form_email" class="short" tabindex="4" value="" />
I know I'm missing something so simple, but I've tried, I really have....
Thanks!
I'm using document.getElementById("form_email").value = '<?php echo $userdata->user_email; ?>';
to try and pre-fill the field but it's just not seeing the field right?
The form's HTML is the following: <form action="" name="SUBMITFORM" id="SUBMITFORM" method="post" onsubmit="return CheckFormData();" enctype="multipart/form-data"> and the field: <input type="text" name="form[email]" id="form_email" class="short" tabindex="4" value="" />
I know I'm missing something so simple, but I've tried, I really have....
Thanks!