Hello fellow forum members.
As you can see I am new to these forums and to PHP scripts.
I would like to ask for some help regarding a form I want to use for other cadets in my school to use as a ribbon (award) rack builder. Apparently the .php page is not posting the images or even the text when you select it. You can look at the extended version of the code at
http://www.mshsjrotc.110mb.com/testrack2.htm
This form used to be functional before but as I switched webhosts I lost the .php page and unfurtunately never recovered it.
Heres the form:
<HTML><HEAD>
<META content="MSHTML 6.00.5700.6" name=GENERATOR></HEAD>
<BODY>
<CENTER>
<FORM ACTION="action2.php" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<TABLE BORDER="0"><TR><TD><img src="http://i17.photobucket.com/albums/b69/Mhsjrotc/ar2.gif" alt="N-1-1" border="0"></TD><TD><input type="checkbox" name="awards[1]" value="dsc"> <font style="font-family:Verdana,arial; font-size:13px">Distinguished Cadet</font></TR><TR><TD><img src="http://i17.photobucket.com/albums/b69/Mhsjrotc/ar3.gif" alt="N-1-2" border="0"></TD><TD><input type="checkbox" name="awards[2]" value="aew"> <font style="font-family:Verdana,arial; font-size:13px">Academic Excellence</font></TR><TR><TD><img src="http://i17.photobucket.com/albums/b69/Mhsjrotc/ar4.gif" alt="N-1-3" border="0"></TD><TD><input type="checkbox" name="awards[3]" value="aar"> <font style="font-family:Verdana,arial; font-size:13px">Academic Achievement Ribbon</font></TR></TABLE>
<BR>
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Create Rack!">
</FORM>
</CENTER></BODY></HTML>
and heres the action2.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head><body>
<?PHP
$src[1] = "http://i17.photobucket.com/albums/b69/mhsjrotc/ar2.gif";
$src[2] = "http://i17.photobucket.com/albums/b69/mhsjrotc/ar3.gif";
$src[3] = "http://i17.photobucket.com/albums/b69/mhsjrotc/ar4.gif";for ($i = 1; $i <= 3; $i++) {
if ($img[$i]) {
print "<img src=\"http://i17.photobucket.com/albums/b69/mhsjrotc/ar2.gif" . $src[$i] . "\"><BR>";
}
}
?>
</body>
</html>
I'm sure this is wrong, but I would appreciate the help of anyone willing to do so.
Thanks in advance, mhsjrotc