For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > September 2004 > template re HTML::Template choking









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author template re HTML::Template choking
Rick Triplett

2004-09-29, 3:55 pm

Here is the template:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<meta http-equiv="content-type"
content="text/html;charset=ISO-8859-1">
<title>student_info_viewer</title>
</head>

<body bgcolor="#f5f5f5">
<div align="center">
<font size="+2">
student_id = <TMPL_VAR VALUE=student_id>
<br>
</font><font
face=" Monaco,Arial,Helvetica,Geneva,Swiss,SunS
ans-Regular">
<form
action="http://www.xxxxxxxxxxxxx.com/cgi-bin/student_info_viewer.cgi"
method="post" name="FormName">
<div align="center">
<table width="99%" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="40%">
<table width="99%" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="40%">
<div align="left">


name_full<br>
<input type="text" name="name_full" value="<TMPL_VAR
NAME="name_full">" size="40" maxlength="40"></div>
</td>
</tr>
</table>
</td>
<td width="40%">enroll_type<br>
<input type="text" name="enroll_type" value="<TMPL_VAR
NAME="enroll_type">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
<table width="99%" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="40%">
name_nick<br>
<input type="text" name="name_nick" value="<TMPL_VAR
NAME="name_nick">" size="40" maxlength="40"></td>
</tr>
</table>
</td>
<td width="40%">
account_number<br>
<input type="text" name="account_number" value="<TMPL_VAR
NAME="account_number">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
name_last<br>
<input type="text" name="name_last" value="<TMPL_VAR
NAME="name_last">" size="40" maxlength="40"></td>
<td width="40%">
password<br>
<input type="text" name="password" value="<TMPL_VAR
NAME="password">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
date_birth<br>
<input type="text" name="date_birth" value="<TMPL_VAR
NAME="date_birth">" size="40" maxlength="40"></td>
<td width="40%">
student_email<br>
<input type="text" name="student_email" value="<TMPL_VAR
NAME="student_email">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
sex<br>
<input type="text" name="sex" value="<TMPL_VAR NAME="sex">"
size="40" maxlength="40"></td>
<td width="40%">
mentor_email<br>
<input type="text" name="mentor_email" value="<TMPL_VAR
NAME="mentor_email">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
date_entered<br>
<input type="text" name="date_entered" value="<TMPL_VAR
NAME="date_entered">" size="40" maxlength="40"></td>
<td width="40%">
suspended<br>
<input type="text" name="suspended" value="<TMPL_VAR
NAME="suspended">" size="40" maxlength="40"></td>
</tr>
<tr>
<td width="40%">
date_withdrawn<br>
<input type="text" name="date_withdrawn" value="<TMPL_VAR
NAME="date_withdrawn">" size="40" maxlength="40"></td>
<td width="40%"><input type="hidden" name="student_id"
value="<TMPL_VAR VALUE=student_id>"></td>
</tr>
<tr>
<td width="40%"></td>
<td width="40%"></td>
</tr>
</table>
<p><input type="submit" name="submitButtonName"
value="update_info"></p>
</div>
</form>
</font></div>
</body>

</html>

Wiggins d Anconia

2004-09-29, 3:55 pm

> Here is the template:
>


> student_id = <TMPL_VAR VALUE=student_id>


The above line does not have a "NAME" attribute which I think is
required. And should the "VALUE" be "DEFAULT"??

HTH,

http://danconia.org

Rick Triplett

2004-09-29, 3:55 pm

On Sep 29, 2004, at 9:45 AM, Wiggins d Anconia wrote:

>
>
> The above line does not have a "NAME" attribute which I think is
> required. And should the "VALUE" be "DEFAULT"??
>
> HTH,
>
> http://danconia.org
>

Yes, it is clear that I've botched line 13. I am grateful for you
experienced eye.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com