chapt0r
Sat 11th May '02, 12:16am
Ok, I am sorry to bother again, (new to PHP) I got down the emailing script, and I even got down the File Uploading script to work, Now when I tried to combine the two, so when I recieve an email of a new submission it contains the file name that was loaded. This way in the email, I will know what images are related to what user. So far I am recieving this warning:
Warning: Undefined index: img1 in c:\program files\apache group\apache\htdocs\do_sendform.php on line 5
Here are the two sources:
HTML
<HTML>
<HEAD>
<TITLE>E-Mail Form</TITLE>
</HEAD>
<BODY>
<form enctype="multipart/form-data" method="post" action="do_sendform.php">
<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=30>
</p>
<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>
<P>Message:<br>
<textarea name="message" cols=30 rows=5></textarea>
</p>
<input type="hidden" name="MAX_FILE_SIZE" value="50000">
<p><strong>File to Upload:</strong><br>
<INPUT type="file" name="img1" size"30"></p>
<INPUT type="submit" value="Send This Form">
</FORM>
</BODY>
</HTML>
PHP Is on next thread.
P.S. I have added the error_reporting = e_all & ~E_notice to my php.ini file.
Thanks again.
Wes
Warning: Undefined index: img1 in c:\program files\apache group\apache\htdocs\do_sendform.php on line 5
Here are the two sources:
HTML
<HTML>
<HEAD>
<TITLE>E-Mail Form</TITLE>
</HEAD>
<BODY>
<form enctype="multipart/form-data" method="post" action="do_sendform.php">
<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=30>
</p>
<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>
<P>Message:<br>
<textarea name="message" cols=30 rows=5></textarea>
</p>
<input type="hidden" name="MAX_FILE_SIZE" value="50000">
<p><strong>File to Upload:</strong><br>
<INPUT type="file" name="img1" size"30"></p>
<INPUT type="submit" value="Send This Form">
</FORM>
</BODY>
</HTML>
PHP Is on next thread.
P.S. I have added the error_reporting = e_all & ~E_notice to my php.ini file.
Thanks again.
Wes