Gossamer Forum
Home : Products : DBMan : Installation :

JPDeni Validation Mod

Quote Reply
JPDeni Validation Mod
Everything is working great - I love this mod! But I have one problem. This is going to sound REALLY STUPID but I can't seem to solve it (not enough knowledge or experience I'm afraid). PLEASE someone? When I go in as a guest/default user everything is perfect, but when I go in as Admin I get the Submit and Reset buttons and the footer menu at the TOP of my pages and the search form at the BOTTOM. I think it's to do with this bit of script:

###############################################################################
#file: html.pl #
# sub html_record_form #
# #
# Add (probably near the bottom of the form) #
###############################################################################

|; # to close off any previous print qq| statement
if ($per_admin) {
print qq|<tr><td>Validated</td>
<td> |; print &build_radio_field("Validated",$rec{'Validated'});
print "</td></tr>";
}
else {
print qq|<input type="hidden" name="Validated" value="$rec{'Validated'}">|;
}
print qq|

WHAT HAVE I DONE WRONG?

Thanks folks.
Quote Reply
Re: JPDeni Validation Mod In reply to
Try it like this and see if it helps:

|; # to close off any previous print qq| statement
if ($per_admin) {
print qq|<tr><td>Validated</td>
<td> |; print &build_radio_field("Validated",$rec{'Validated'}); print qq| </td></tr> |;
}
else {
print qq|<input type="hidden" name="Validated" value="$rec{'Validated'}">|;
}
print qq|

Quote Reply
Re: JPDeni Validation Mod In reply to
If Lois's suggestion doesn't work, I'll need to see your whole sub html_record_form.

Quote Reply
Re: JPDeni Validation Mod In reply to
Thanks for helping! Problem solved!