Hello, super component. I want to create a form to send files, but I do not find ...
I do not know how?
Thanks
I do not know how?
Thanks
Hi,
Please check this faq:
http://www.chronoengine.com/component/option,com_easyfaq/task,cat/catid,21/Itemid,38/#faq29
Cheers
Max
Please check this faq:
http://www.chronoengine.com/component/option,com_easyfaq/task,cat/catid,21/Itemid,38/#faq29
Cheers
Max
I have done it you do not possible to have an example, or if I give you my login site
Hi,
Please post your form code, a screenshot for the general tab, and another screenshot for the uploads tab!
Cheers
Max
Please post your form code, a screenshot for the general tab, and another screenshot for the uploads tab!
Cheers
Max
<?php
global $database;
$database->setQuery( "INSERT INTO #__chronoforms_5 VALUES (
'' , '". date('Y-m-d')." - ".date("H:i:«»s"«»)."', '".$_SERVER['REMOTE_ADDR']."' , '".$_POST['first_name']."' , '".$_POST['last_name']."' , '".$_POST['article_title']."' , '".$_POST['article_message']."' , '".$_POST['company_name']."' , '".$_POST['company_url']."' , '".$_POST['company_description']."' , '".$_POST['email_address']."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>
<table cellpadding="0" cellspacing="2" border="0">
<tr><td colspan="2" height="5"></td></tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>First name</b></font></td>
<td valign=top><font face="verdana" size="1" color="#cc0000">*</font> </td>
<td><input type=text name="first_name" size=35 maxlength=40></td>
<td> </td>
</tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Last name</b></font></td>
<td valign=top><font face="verdana" size="1" color="#cc0000">*</font> </td>
<td><input type=text name="last_name" size=35 maxlength=40></td>
<td> </td>
</tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Article title</b></font></td>
<td valign=top><font face="verdana" size="1" color="#cc0000">*</font> </td>
<td><input type=text name="article_title" size=35></td>
<td> </td>
</tr>
<tr valign="top" nowrap><td>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Article/message</b></font></td></tr>
</table>
<br></td>
<td></td>
<td valign="top"><textarea name="article_message" cols="35" rows="5" wrap="PHYSICAL" maxlength="250"></textarea></td>
<td align="left"> </td>
</tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Attach article</b></font></td>
<td></td>
<td valign=top> <input type="file" name="uploadfile" size="25"><br><font face="Verdana" size="1" color="#808080">File must be in Word document or zip</font></td>
<td> </td>
</tr>
<tr><td colspan="4" height="8"></td></tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Company name</b></font></td>
<td></td>
<td valign=top><input type=text name="company_name" size=35 maxlength=40></td>
<td> </td>
</tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Company URL</b></font></td>
<td></td>
<td valign=top><input type=text name="company_url" size=35 maxlength=40></td>
<td> </td>
</tr>
<tr><td><font face="Arial,Helvetica" size=2 color="#333333"><b>Company description</b></font> </td>
<td></td>
<td valign=top><textarea name="company_description" cols="35" rows="3" wrap="PHYSICAL" maxlength="250"></textarea></td>
<td> </td>
</tr>
<tr><td nowrap><font face="Arial,Helvetica" size=2 color="#333333"><b>Your e-mail address</b></font> </td>
<td valign="top"><font face="verdana" size="1" color="#cc0000">*</font> </td>
<td><input type=text name="email_address" size=35 maxlength=40>
<br><font face="Verdana,Arial" size="1" color="gray">Format: yourname@address.com</font></td>
<td> </td>
</tr>
<tr><td nowrap></td>
<td></td>
<td>{imageverification}</td>
<td> </td>
</tr>
<tr><td colspan=4 align=center><input type="image" value="submit" src="http://www.globalsources.com/CUSTOMER/IMAGES/SUBMIT.GIF" alt="Send Email" border=0></td></tr>
</table>
[/img]
Hi,
#1- please remove the PHP code at the top of the form, this code should be at the auto generated tab and made by chronoforms itself, or you know that this code will insert some data and you are sure about your table fields ?
#2- at the uploads tab, the field name u specify is : "uploadedfile", while in your html code, its "uploadfile", please fix one of them😉
Cheers
Max
#1- please remove the PHP code at the top of the form, this code should be at the auto generated tab and made by chronoforms itself, or you know that this code will insert some data and you are sure about your table fields ?
#2- at the uploads tab, the field name u specify is : "uploadedfile", while in your html code, its "uploadfile", please fix one of them😉
Cheers
Max
:woohoo: it's good thank you.
now i have a another problem :
I would oblige the fields and creates another field for pictures.
It is for members or visitors send me templates with pictures. Thanks😉
now i have a another problem :
I would oblige the fields and creates another field for pictures.
It is for members or visitors send me templates with pictures. Thanks😉
Cant understand this problem!!🙂
ok
I would like fields are mandatory. Those with "*"
Look my form : mon formulaire<br><br>Post edited by: admin, at: 2007/10/29 00:27
I would like fields are mandatory. Those with "*"
Look my form : mon formulaire<br><br>Post edited by: admin, at: 2007/10/29 00:27
Hi,
Did you try to use the validation tab and follow the instructions ?🙂
Did you try to use the validation tab and follow the instructions ?🙂
How to be sent on a page if the form is incomplete?
after i create a tutorial un french
It forced :laugh:
after i create a tutorial un french
It forced :laugh:
Hi yatoula,
I guess you can put the file field name in the "required" box ?
Cheers
Max
I guess you can put the file field name in the "required" box ?
Cheers
Max
This topic is locked and no more replies can be posted.



