I am using the preview mod with the relationship database which allows a short/long display for the admin and for a registered user it goes directly to their user information when they click on Modify User Info in the footer. I have installed the Preview Mod so that users (as well as the admin) is able to preview the User Information before it is added to the database. Everything seems to be working except the preview page. A display of the users information is previewed at the top portion of the page but in the bottom half of the page which should have the user form completed with the users information the fields are empty. I changed &html_record(%in); to &html_record_long(%in); thinking that this would help but it doesn't.
Can anyone please help me figure this out?
Here is the preview portion of code from my html.pl file:
sub html_preview {
# --------------------------------------------------------
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Record Preview.</title>
</head>
<body bgcolor="#DDDDDD">
<center>
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Record Preview</b>
<br>
<p><center><$font_title><b>Record Preview</b></font></center><br>
<$font><P><Font face="Verdana, Arial, Helvetica" Size=2>
This is your record as you entered it.
If you are satisfied with it, use the "Add it!" button directly
below the record.
Otherwise, make the changes in the form and use the "Preview
Record" button below the form.:</FONT>
|;
&html_record_long(%in);
print qq|
<form action="$db_script_url" method="POST" name="form1">
<center><INPUT TYPE="SUBMIT" NAME="add_record" VALUE="Add It!"><HR></center>
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
|;
&html_record_form(%in);
print qq|
<p><center>
<INPUT TYPE="SUBMIT" NAME="preview_record" VALUE="Preview Record">
<INPUT TYPE="RESET" VALUE="Reset Form"></center></p></form>
|;
&html_footer;
print qq|
<br>
</body>
</html>
|;
}
Thanks in advance!
Cher
Can anyone please help me figure this out?
Here is the preview portion of code from my html.pl file:
sub html_preview {
# --------------------------------------------------------
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Record Preview.</title>
</head>
<body bgcolor="#DDDDDD">
<center>
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Record Preview</b>
<br>
<p><center><$font_title><b>Record Preview</b></font></center><br>
<$font><P><Font face="Verdana, Arial, Helvetica" Size=2>
This is your record as you entered it.
If you are satisfied with it, use the "Add it!" button directly
below the record.
Otherwise, make the changes in the form and use the "Preview
Record" button below the form.:</FONT>
|;
&html_record_long(%in);
print qq|
<form action="$db_script_url" method="POST" name="form1">
<center><INPUT TYPE="SUBMIT" NAME="add_record" VALUE="Add It!"><HR></center>
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
|;
&html_record_form(%in);
print qq|
<p><center>
<INPUT TYPE="SUBMIT" NAME="preview_record" VALUE="Preview Record">
<INPUT TYPE="RESET" VALUE="Reset Form"></center></p></form>
|;
&html_footer;
print qq|
<br>
</body>
</html>
|;
}
Thanks in advance!
Cher