Forum Moderators: phranque
<table width="800" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="329"> </td>
<td height="1"><form method="post" action="http://www.example.com/cgi-bin/ts.pl">
<INPUT TYPE="HIDDEN" NAME="index" VALUE="#######">
<TABLE BGCOLOR="WHITE" CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD width="32"><A HREF="http://www.example.com/" TARGET="_top"><IMG BORDER="_BORDERTYPE" SRC="http://www.example.com/example.gif" ALT="example"></A></TD>
<TD width="185"><INPUT TYPE="TEXT" NAME="query2" VALUE="" SIZE="20"></TD>
<TD width="185"><INPUT TYPE="SUBMIT" VALUE="Search" name="SEARCH"></TD>
</TR>
</TABLE>
</form></td>
</tr>
</table>
[edited by: Woz at 2:05 am (utc) on April 22, 2003]
[edit reason] took out specifics [/edit]
Trying to setup a Form that allows the user to Browse His PC for JPG GIF, TIFF and BMP files type in a description of the image and by clicking "submit" (or whatever) automatically emailing it out to an address... this is how far I have gotten.... Thanks again....
<form style="margin-bottom:0; margin-top:0; margin-left:0; margin-right:0;" action="mailto:someone@example.com">
<table>
<tr>
<td>E-mail Address:</td>
<td><input name="sender" type="text" size="24"></td>
</tr>
<tr>
<td>Description:</td>
<td> <input type="text" name="description" size="24" maxlength="100"></td>
</tr>
<tr>
<td>Find Image:</td>
<td><input name="file" type="file" size="15" accept="image/gif; image/jpg; image/tiff; image/x-ms-bmp"></td>
</tr>
<tr>
<td><input name="submit" type="submit" id="submit" value="Send It!">
</td>
</tr>
</table>
</form>
[edited by: Woz at 2:18 am (utc) on April 22, 2003]
[edit reason] took out specifics [/edit]
If you are looking for suggestions for improvement then:
<form method="POST" action="/cgi-bin/whatever.cgi"
enctype="multipart/form-data">
<input type="file" name="upfile" accept="image/*">
<input type="text" name="description" size="##" maxlength="##">
<input type="submit" name="send" value="Send">
What specific should I have in the cgi file to accept and email the given data? I know about the following....
#!/usr/bin/perl5 - Where Perl is Located on the Server
$mailprogram = '/usr/sbin/sendmail'; - the SendMail Program on the Server..
I Have to open the Mail Program... I see that there are variables for the mail program...
$mail attachment works right?