Member
From: Loughborough, United Kingdom
Registered: 2006-04-14
Posts: 796
I've been thanked 13 times.
Offline
javascript on the client side backed up server side.
NoSting Hosting - Brightside Hosting Ltd: Member of Nominet / eNom ETP
^^^ Now with over 400 free templates, ShoutCast, LAME + FFMPeg
Ringtones - Palace Marketing Ltd: D2C and B2B mobile content since 2002
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2793
I've been thanked 77 times.
Offline
look at the 'YOUR LINK DESCRIPTION' input field on
http://www.mediterranean-cruise-holiday … a-link.asp
JS seems a nightmare to wade through, lol
Moderator
From: Deland, FL
Registered: 2005-10-25
Posts: 1308
I've been thanked 23 times.
Offline
Kinda...I dont really need the countdown box though....Just a way to require the user to put at least 7 characters in a box...what it is for is to have users that forgot their UN and PW...they put in their Order ID and Last name...the way it is set up now is that I can put 1 letter in the order ID (they start with letters) and 1 letter in the last name field, and the script will email EVERY user that matches that combination...
Oh wait....
Duh...
*Smacks self*
I bet you can guess what I just thought of....
Depending on how you'd want to check it:
Code:
<script language="javascript">
function check_form() {
var form_field = document.form.field.value;
if ( form_field.length < 7 ) {
alert('Your whatever must be at least 7 characters');
return false;
}
else {
return true;
}
}
</script>
<form name="form" onSubmit="return check_form();">
<input type="text" name="field" />
<input type="submit" name="submit" value="Click here" />
</form>
Just quickly typed javascript example. Don't depend on it, but it's a simple way to client side check what you want.
| Never |


