Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:32:56+00:00 2026-05-28T21:32:56+00:00

I have a form where five fields are there but when i click on

  • 0

I have a form where five fields are there but when i click on submit nothing happens and it is not submitting the form .earlier it was with three field username ,email and password and that time it was working fine but now with 5 fields its not working here is my java script and html code.
with three fields its working fine but when i try for five fields nothing happens when i click on submit ..please tell where i am doing mistake

HTML

<form name="massimport" action="import.php" method="post">
<div id="status1">
    <tr>
        <td class="input-labels">
            <input type="hidden" 
                            style="width:220px" 
                            value="Id" 
                            name="myid" 
                            size="40" 
                            onkeypress="return submitenter(this,event)"
                            onmouseout="style.borderColor='#999999'" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" 
                            id="myid" 
                            class="inputbox">
        </td>
    </tr>
    <tr>
        <td height="30">
            <div class="signup-labels">
                Full Name
            </div>
        </td>
        <td align="left" class="input-labels">
            <input type="hidden" 
                            value="Fullname" 
                            onkeypress="return submitenter(this,event)" 
                            onmouseout="style.borderColor='#999999'" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" 
                            name="clientname" 
                            style="margin-bottom:6px; " 
                            size="24" class="inputbox">
        </td>
    </tr>
</div>
<table cellspacing="0" cellpadding="0" border="0" class="tableimport">
<tbody>
<tr>
    <td height="30">
        <div class="signup-labels">
            Username @Way2enjoy
        </div>
    </td>
    <td align="left" class="input-labels">
        <input type="text" 
                            style="width:167px" 
                            class="fpost " 
                            value="" 
                            name="username" 
                            size="40" id="username">
    </td>
</tr>
<tr>
    <td height="30">
        <div class="signup-labels">
            Your Name :
        </div>
    </td>
    <td align="left" class="input-labels">
        <input class="inputbox" 
                            size="24" 
                            style="margin-bottom:6px; " 
                            name="clientname" 
                            onfocus="style.borderColor='#FFEB70';" 
                            onblur="style.borderColor='#999999';" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onmouseout="style.borderColor='#999999'" 
                            onkeypress="return submitenter(this,event)">
    </td>
</tr>
<tr>
    <td height="30" width="115">
        <div class="signup-labels">
            Email Address :
        </div>
    </td>
    <td align="left" class="input-labels">
        <input onkeypress="return submitenter(this,event)" 
                            onmouseout="style.borderColor='#999999'" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" class="inputbox" 
                            style="margin-top: 2px; border-color: rgb(153, 153, 153);" 
                            name="username" size="24">
        <select onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" 
                            onchange="if(document.massimport.username.value==''){document.massimport.username.focus();} else{document.massimport.password.focus();}" 
                            class="comboservice" 
                            name="service">
            <option value="aol">@aol.com</option>
            <option value="fastmail">@fastmail.fm</option>
            <option value="gmail">@gmail.com</option>
            <option value="googlemail">@googlemail.com</option>
            <option value="gmx.net">@gmx.net</option>
            <option value="hotmail">@hotmail.com</option>
            <option value="icqmail">@icqmail.com</option>
            <option value="live">@live.com</option>
            <option value="lycos">@lycos.com</option>
            <option value="maildotcom">@mail.com </option>
            <option value="msn">@msn.com </option>
            <option value="rediffmail">@rediffmail.com</option>
            <option value="rocketmail">@rocketmail.com</option>
            <option selected="" value="yahoo">@yahoo.com</option>
            <option value="ymail">@ymail.com</option>
            <option value="otheremail">Regional domains</option>
        </select>
    </td>
</tr>
<tr>
    <td height="30">
        <div class="signup-labels">
            Password :
        </div>
    </td>
    <td align="left" class="input-labels">
        <input type="password" 
                            onkeypress="return submitenter(this,event)" 
                            onmouseout="style.borderColor='#999999'" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" 
                            name="password" 
                            size="24" class="inputbox" 
                            style="border-color: rgb(153, 153, 153);">
    </td>
</tr>
<tr>
    <td>
    </td>
    <td height="24" align="left" id="errorlabel" class="input-labels">
        <div class="message_error" id="message" style="visibility: hidden;">
             &nbsp;
        </div>
    </td>
</tr>
<tr>
    <td height="44">
    </td>
    <td align="left" class="input-labels">
        <input type="hidden" value="showContacts" id="act" name="act">
        <input type="button" 
                            onclick="verimport()" 
                            onmouseout="style.borderColor='#999999'" 
                            onmouseover="style.borderColor='#FFEB70'" 
                            onblur="style.borderColor='#999999';" 
                            onfocus="style.borderColor='#FFEB70';" 
                            value="Invite Friends" 
                            name="masssubmit" 
                            style="width: 120px; border-color: rgb(153, 153, 153);" 
                            class="submit">
    </td>
</tr>
</tbody>
</table>
</form>

Javascript

function verimport()
{
<!-- buzz form -->
<?php if ($enablebuzz && $enable_buzz_form) {  ?>
var conf = {
            frequency: 4000,
            spread: 4,
            duration: 400
        };
    <?php } ?>
<!-- end buzz form -->


document.getElementById('message').style.visibility='hidden';
if(trimAll(document.massimport.elements[0].value)=='')
{
document.getElementById('message').style.visibility='visible';
document.getElementById('message').innerHTML='<?php echo($importerjserror5) ?>';

<?php if ($enablebuzz && $enable_buzz_form) {  ?> $("#login").vibrate(conf); <?php } ?>
document.massimport.elements[0].focus();
return false;
} 

if(trimAll(document.massimport.elements[1].value)=='')
{
document.getElementById('message').style.visibility='visible';
document.massimport.elements[1].focus();
document.getElementById('message').innerHTML='<?php echo($importerjserror1) ?>';
<?php if ($enablebuzz && $enable_buzz_form ) {  ?> $("#login").vibrate(conf); <?php } ?>
return false;
} 
if(document.massimport.elements[2].options[<?php echo $nr_serv_in_combo ?>].selected==true)
{
    if(!check_email(trimAll(document.massimport.elements[1].value))) 
    {
    document.getElementById('message').innerHTML='<?php echo($importerjserror2) ?>';
    document.getElementById('message').style.visibility='visible';
    document.massimport.elements[1].focus();
    <?php if ($enablebuzz && $enable_buzz_form) {  ?> $("#login").vibrate(conf); <?php } ?>
    return false;
    }
}
else 
{
if(trimAll(document.massimport.elements[1].value).indexOf('@')!='-1') 
    {
    document.getElementById('message').innerHTML='<?php echo($importerjserror3) ?>';
    document.getElementById('message').style.visibility='visible';
    document.massimport.elements[1].focus();
    <?php if ($enablebuzz && $enable_buzz_form) {  ?> $("#login").vibrate(conf); <?php } ?>
    return false;
    }
}

if(trimAll(document.massimport.elements[3].value)=='')
{
document.getElementById('message').style.visibility='visible';
document.getElementById('message').innerHTML='<?php echo($importerjserror4) ?>';
document.massimport.elements[3].focus();
<?php if ($enablebuzz && $enable_buzz_form) {  ?> $("#login").vibrate(conf); <?php } ?>
return false;
} 





document.getElementById('message').style.background = 'url(none.jpg)';
document.getElementById('message').style.paddingLeft='1px';
document.getElementById('message').style.visibility='visible';
document.getElementById('message').innerHTML="<img src='images/loader.gif' border=0 hspace=0 vspace=0>";
document.massimport.masssubmit.value='<?php echo($importerformcontrol5) ?>';
document.massimport.masssubmit.disabled=true;
document.getElementById('errorlabel').style.padding='0';
window.setTimeout("document.massimport.submit()",1000);
}

with three fields its working fine but when i try for five fields nothing happens when i click on submit ..please tell where i am doing mistake

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:32:56+00:00Added an answer on May 28, 2026 at 9:32 pm
    document.massimport.masssubmit.disabled=true;  <-- this turns off your form
    document.getElementById('errorlabel').style.padding='0';
    window.setTimeout("document.massimport.submit()",1000);
    

    You cannot submit a disabled form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have five $_POST hidden fields in my form that hold the id's names
I have an application containing a form with five input fields. When the user
I have form area in my view. If I click button A , I
i have form action file in another directory but some file send to this
I have form with one input for email and two submit buttons to subscribe
I have form with 1 button. when you click on the button 3 others
I have form where user submits field. Field can have letters, numbers, and punctuation.
I have form, where some fields are looks like rows, so I can add/delete
We have a form with five <input type=file/> elements that is in production and
I have a very simple voting form. It contains a single text field for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.