View Full Version : Form with images upload
adrianophoto
3-2-07, 04:53 PM
Hello,
I have a new form that should send info and pictures.
I receive the info but not the pictures.
Does anyone know how to resolve this?
Here is the form:
http://www.adrianobatti.com/tfp.htm
Thank you!
You need an encoding method.
<form action="" method="post" enctype="multipart/form-data">
adrianophoto
3-2-07, 09:42 PM
Thank you for the quick response.
How I do put this togheter?
<form action="" method="post" enctype="multipart/form-data">
<form method="post" action="http://adrianobatti.com/cgi-bin/SaveForm.pl" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<input type=hidden name="recipient" value="info@adrianobatti.com">
<input type=hidden name="redirect" value="http://www.adrianobatti.com/thankyou.htm">
just look http://postcardsbargain.com/clip.html
adrianophoto
3-2-07, 11:16 PM
I chaged to this but is still not working.
<form enctype="multipart/form-data "method="post" action="http://adrianobatti.com/cgi-bin/SaveForm.pl" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1"
Did I maybe miss a comma or period somewere?
does your SaveForm.pl handle uploads?
adrianophoto
3-3-07, 12:22 AM
Good question. I don't know.
I found the FAQ from the form website, but they don't help much...at all.
http://www.scriptarchive.com/faq/formmail.html#q1
1. Everything works, but I don't receive the data.
Short Answer:
Check your mail path.
Long Answer:
Check your path to sendmail and the mailing address you have configured in your form. To do this, you may need to modify the $mailprog variable in FormMail.pl. Many systems do not have sendmail in the /usr/lib directory which is default in my scripts, and some don't even have sendmail! To find out where its located on your system, use the following command at your unix prompt:
adrianophoto
3-3-07, 12:25 AM
it...should be
saveform.pl or formmail.pl
or is the same?
kurniawan
3-3-07, 01:18 AM
Try to change the line :
<form enctype="multipart/form-data "method="post" action="http://adrianobatti.com/cgi-bin/SaveForm.pl" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
into
<form enctype="multipart/form-data" method="POST" action="http://adrianobatti.com/cgi-bin/SaveForm.pl" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
see the bolded part.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.