Em Andamento

Form validation javascript

Form validation Javascript

Below is the form with 3 field to be validated.

<center><form method="post" action="http://www.aweber.com/scripts/addlead.pl">

<input type="hidden" name="meta_web_form_id" value="">

<input type="hidden" name="meta_split_id" value="">

<input type="hidden" name="unit" value="">

<input type="hidden" name="redirect" value="http://www.aweber.com/form/thankyou.html" id="">

<input type="hidden" name="meta_redirect_onlist" value="">

<input type="hidden" name="meta_adtracking" value="tracking">

<input type="hidden" name="meta_message" value="1">

<input type="hidden" name="meta_required" value="">

<input type="hidden" name="meta_forward_vars" value="1">

<table>

<tr><td colspan=2><center></center></td></tr>

<tr><td>Name:</td><td><input type="text" name="name" value="" size="20"></td></tr>

<tr><td>Email:</td><td><input type="text" name="from" value="" size="20"></td></tr>

<tr><td>zip:</td><td><input type="text" name="custom zip" value="" size="20"></td></tr>

<tr><td colspan=2><center></center></td></tr>

<tr><td align="center" colspan="2"><input type="submit" name="submit" value="Submit"></td></tr>

</table>

</form>

</center>

Then field name cannot be changed as it is a requirement for aweber.

The 3 field to be validated are:

name

from

custom zip

All error are to be in the form of a popup using:

alert("Error here");

Validate name (name)

Nothing has been submitted, name field is empty

Error message: "Zip/Postal code is required."

Correct format no special characters only alphabet used (A-Z a-z)

Error message "Your name can only contain letters of the alphabet."

No spaces, only one word for name field

Error message "Please enter only your first name."

Validate the email address (from)

Correct email address format or nothing submitted - Use Regular Expressions for valid email address format

Error message: "Enter a valid email address."

Validate the USA postal/zip code. (custom zip)

Nothing has been submitted or custom zip field is empty

Error message: "Zip/Postal code is required."

custom zip field is = five characters

Error message: "Zip/Postal code should be five characters."

custom zip field cannot contain spaces

Error message: "Zip/Postal code cannot have spaces"

custom zip field can only contain valid USA zipcode characters - Use Regular Expressions for valid USA zip code formats

Error message: "Zip/Postal code contains invalid characters."

This should be a very easy job for some experienced in JavaScript I am prepared to pay no more than $30 for this easy job and require it to be done ASAP.

Habilidades: Javascript

Ver mais: validate input aweber form, alphabet validation javascript, using regular expressions, using expressions, email format invalid, name validation javascript, job javascript, invalid email format, invalid email error, invalid email address message, invalid email address format, five below, enter email address format, correct email address, aweber addlead scripts, form alphabet validation, valid id, correct email format, validation, javascript validation, input method, form word, expressions, email validation, javascript required field validation

Acerca do Empregador:
( 22 comentários ) Mudgeeraba, Australia

ID do Projeto: #531243

Premiar a:

ichurakov

Hello. Ready to help you. Please check PM. Thnx.

$30 USD em 0 dias
(62 Avaliações)
4.8

3 freelancers estão ofertando em média $30 para este trabalho

eelance

i can do that for you.

$30 USD in 0 dias
(22 Comentários)
4.6
exitsol

Lets get started

$30 USD in 0 dias
(15 Comentários)
3.7