Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Form autofil field ?l

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Default Form autofil field ?l

    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....


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,465 Times in 2,416 Posts

    Default Re: Form autofil field ?l

    Try asking on a javascript forum. This one is for java.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Setting constraints on a field
    By cslx99 in forum Object Oriented Programming
    Replies: 11
    Last Post: December 8th, 2011, 03:49 AM
  2. How to add date field ?
    By Rajiv in forum Web Frameworks
    Replies: 1
    Last Post: August 10th, 2011, 09:27 PM
  3. Replies: 3
    Last Post: April 11th, 2011, 09:51 PM
  4. Using a password field
    By javapenguin in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 10th, 2010, 11:54 AM
  5. Java Swing :Back Button from one form to another form
    By srinivasan_253642 in forum AWT / Java Swing
    Replies: 1
    Last Post: December 26th, 2009, 09:51 AM