Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Virtual Address

Javascript, I have a form that I cannot edit past here, I've included the script and the form?


<SCRIPT>
function validate() {
mNv=mainform.Name.value;
if (mNv=='') {
alert('Your name is a required field. Please try again.');
event.returnValue=false;
}
mNv=mainform.address.value;
if (mNv=='') {
alert('Your address is a required field. Please try again.');
event.returnValue=false;
}
mNv=mainform.suburb.value;
if (mNv=='') {
alert('Your Suburb is a required field. Please try again.');
event.returnValue=false;
}
mNv=mainform.phone.value;
if (mNv=='') {
alert('Your Phone Number is required. Please try again.');
event.returnValue=false;
}
mNv=mainform.order.value;
if (mNv=='') {
alert('You need to fill in you order details.');
event.returnValue=false;
}
mNv=mainform.email.value;
if (mNv=='') {
alert('Your Email address is needed for your order confirmation. Please enter a valid email address');
event.returnValue=false;
}
if (mainform.creditcard.options[0].selected... {
alert('Please choose a Card Type.');
event.returnValue=false;
}
mNv=mainform.cardno.value;
if (mNv=='') {
alert('Your card number should be 20 digits long with no spaces.');
event.returnvalue=false;
}
if (mainform.month.options[0].selected) {
alert('Please enter the month your card expires.');
event.returnValue=false;
}
if (mainform.year.options[0].selected) {
alert('Please enter the year your card expires.');
event.returnValue=false;
}
}
</script>


</HEAD>
<BODY>
<FORM NAME="mainform" ACTION="http://yourdomainhere/cgi-bin/po... METHOD="post" onsubmit="validate();">

<table border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td class="text">Name (as it will appear):<font color="#FF0000">*</font></td>
<td> <input type="text" name="Name" size="50" > </td>
</tr>
<tr>
<td class="text">Address:<font color="#FF0000">*</font></td>
<td> <Input type="text" name="address" size="60"> </td>
</tr>
<tr>
<td class="text">Suburb:<font color="#FF0000">*</font></td>
<td><input type="text" name="suburb" size="35"> </td>
</tr>
<tr>
<td class="text">Postcode:</td>
<td><input type="text" name="postcode" size="5"> </td>
</tr>
<tr>
<td class="text">Contact Phone:<font color="#FF0000">*</font></td>
<td> <input type="text" name="phone" size="10">
</td>
</tr>
<tr>
<td class="text">Your Order:
<font color="#FF0000">*</font> </td>
<td width="300"><textarea name="order" cols="70" wrap="virtual" id="Order"></textarea></td>
</tr>
<tr>
<td class="text">E-mail Address:<font color="#FF0000">*</font></td>
<td> <input type="text" name="email" size="75" maxlength="75"> </td>
</tr>
<tr>
<td class="text">Credit Card Details:<font color="#FF0000">*</font></td>

<td>Card Type<font color="#FF0000">*</font>聽聽聽聽聽
<SELECT NAME="creditcard">
<OPTION VALUE="">--</OPTION>
<OPTION VALUE="1">Visa</OPTION>
<OPTION VALUE="2">MasterCard</OPTION>
<OPTION VALUE="3">American Express</OPTION>
<OPTION VALUE="4">AMEX</OPTION>
</SELECT>
Expiry Date<font color="#FF0000">*</font>
<SELECT NAME="month">
<option value="">--</option>
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="Aug">Aug</option>
<option value="Sept">Sept</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
<SELECT NAME="year">
<option value="">--</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2015">2016</option>
<option value="2015">2017</option>
<option value="2015">2018</option>
</select>
<br>
Card Number:<font color="#FF0000">*</font>
<input type="text" name="cardno" maxlength="20">
</td>
</tr>
<tr><td><td><p align="center">
<INPUT TYPE="SUBMIT">
聽聽聽聽
<input type="reset" value="Clear Form" name="resetButton" tabindex="50">聽聽聽聽
<input name="help" type="button" value="Help" ></p></td></tr>
</table>
</FORM>

Every time I add something like an else if factor it comes aack with an error.

I want this to alert, that there is a fault with the input to the form, specifically that the email is missing an @ and at least one . wherethe input fault is and what they have to do to correct it

What do you mean you "can't edit past here"? Are you getting errors, can you not figure out how to make something? Please provide more details and someone can help you.

Tags
  Business Address   Call Forwarding   Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • Where can I get a virtual credit card that has a US billing address, that I can buy from Australia?

    I wish my experience is helpful for you.Here is the good resource....

  • I'm looking for an unlock code with the em ail address or a crack for Virtual Villagers... Thanks!?

    hiya saw this post and i joined to help i had the same promblem!! found this site ...

  • Has anyone been asked to accept a virtual private network from this I.P address?

    In NO circumstance should u agree to accept any such request. If u let them they will infect ur computer if they haven't already done so. Nowadays the hackers r moving away from email (as t...

  • Please answere me ... how do we create virtual IP address?

    I have no Idea...about Virutal Ip address... Sorry!!!. bye

    ...
  • Convert the +virtual address 0x12345678 into a physical address solution?

    There are some missing parts to your question. Specifically, what sort of MMU is in use. We will assume a single level of page tables, and a 4KiB page size. Given that the virtual address V is 0...

  • I need a virtual address. Suggestions?

    A simpler solution might be to not list a mailing address at all. Most companies handle everything via email and telephone now, so it shouldn't be a problem.

    ...
  • I can't get files off of my Virtual PC?

    Use WinImage. You can mount your VHD (virtual hard drive) and then copy things off. ...

  • ADSL config problem,how to point static ip address to my web homepage.?

    If you correctly configured the Virtual Server port on your router and have the correct external (routable) IP address then you may not be able to host a web site on your connection. Your ISP may b...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster