fields not verifying

S

Sam

I have a form which I have validated certain fields on it but on submission
the fields can be submitted blank.

I have checked the coding against that found online and this seems to be
correct but I wondered if there is anything I can do to prevent blank fields
been submitted?

I would appreciate your help on this matter

Tahnks
 
D

David Berry

To prevent fields from being submitted blank just add validation to the
field requiring a minimum length of at least 1
 
S

Sam

Hi

Thanks for this, I have already done this also but it is still letting
things past. Its a realy mystery to me.

Do you have any other suggestions?
 
D

David Berry

What's the URL so we can take a look and which fields are getting past the
validation?
 
S

Sam

Hi

I would love you to have a look unfortunately the site is sat on a intranet
site and the URL will not give you access.

Any other suggestions that you can make?

All your help is appreciated.
 
R

Ronx

If JavaScript is disabled on the browser being used, the validation will
not work.

The only 100% reliable way to validate is with server side validation -
requires custom script using whichever scripting languages (asp,
asp.net, php etc.) your host supports.
 
D

David Berry

Switch to Code View and copy and paste all the code into your reply so we
can look at it.
 
S

Sam

Hi

Sorry only short piece of coding as it was too long to send the full lot

<font style="font-size: 11pt; font-weight:700"
color="#666666">Surname: </font><span style="font-size: 11pt"><font
face="Arial" color="#666666"<!--webbot bot="Validation"
s-display-name="Patient Surname Needed" b-value-required="TRUE"
i-minimum-length="1" --><input name="Surname" size="19" tabindex="7"
style="font-weight: bold; font-size: 12pt; border-style: solid; border-width:
1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom:
1px; font-family:Arial Black;
text-transform:uppercase"></font></span></font></td>
<td style="border-style: solid; border-width: 1px; padding-left: 4px;
padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font face="Arial">
 
D

David Berry

This code looks correct but without seeing all the code it's hard to tell
what's causing the failure. It could be something else on the page but we
can't tell from this snippet.
 
R

Ronx

<font face="Arial" color="#666666" <!--webbot bot="Validation"
s-display-name="Patient Surname Needed" b-value-required="TRUE"
i-minimum-length="1"><input
Should be
<font face="Arial" color="#666666"> <!--webbot bot="Validation"
s-display-name="Patient Surname Needed" b-value-required="TRUE"
i-minimum-length="1" --><input

Note the extra > and --
 
S

Sam

Hi

When checking the data it does have -- and > in the coding.

What I have noticed is the validation coding is greyed out, does this have
any significance?
 
S

Sam

So we are still no closer to finding out why its not validating.

Oh well, thank you for you help guys.

Thanks

Sam
 
Top