hysteria75067
11-03-2009, 03:05 PM
i am having an issue. i am sure this has been done a million and one times. i am not too good at website design and scripts. so i understand some basic stuff. was wondering if someone can help me with a form.
what i am looking to do is have a user fill out a form and click submit and it sends it to my email. easy! that i can do.
now the problem is-- i was wanting the same user to be able to choose a file (upload) and it is submitted with their info on the form. so when i open my email i see the image as an attachment. is this even possible?
can anyone help?
i know my server supports php. i don't understand cgi, cgi-bin either.
as i said-- i am pretty basic-- so step by step would be very helpful when routing and uploading the files/scripts i need
<FORM ACTION="/cgi-sys/formmail.cgi" METHOD="POST">
<input type=hidden name="recipient" value="yourmail@yourdomain.com">
<input type=hidden name="subject" value="Siteground Test">
<BR>
<BR>
<TABLE>
<TR>
<TD>Name:</TD>
<TD>
<input type=text name="name">
</TD>
</TR>
<TR>
<TD>Feedback:</TD>
<TD>
<input type=text name="feedback">
</TD>
</TR>
<TR>
<TD>
<input type="reset" value="Reset" name="Reset">
</TD>
<TD>
<input type="submit" value="Submit" name="Submit">
</TD>
</TR>
</TABLE>
</FORM>
what i am looking to do is have a user fill out a form and click submit and it sends it to my email. easy! that i can do.
now the problem is-- i was wanting the same user to be able to choose a file (upload) and it is submitted with their info on the form. so when i open my email i see the image as an attachment. is this even possible?
can anyone help?
i know my server supports php. i don't understand cgi, cgi-bin either.
as i said-- i am pretty basic-- so step by step would be very helpful when routing and uploading the files/scripts i need
<FORM ACTION="/cgi-sys/formmail.cgi" METHOD="POST">
<input type=hidden name="recipient" value="yourmail@yourdomain.com">
<input type=hidden name="subject" value="Siteground Test">
<BR>
<BR>
<TABLE>
<TR>
<TD>Name:</TD>
<TD>
<input type=text name="name">
</TD>
</TR>
<TR>
<TD>Feedback:</TD>
<TD>
<input type=text name="feedback">
</TD>
</TR>
<TR>
<TD>
<input type="reset" value="Reset" name="Reset">
</TD>
<TD>
<input type="submit" value="Submit" name="Submit">
</TD>
</TR>
</TABLE>
</FORM>