- Code: Select all
<h3>You can submit your artwork online!</h3>
Personal Details<br />
<br />
Full Name<br /><input name="name" type="text" id="name" size="50" />
<p>ID card no<br /><input name="ID_no" type="text" id="id_no" size="50" />
</p>
<p>Email add<br /><input name="email" type="text" id="email" size="50" />
</p>
<p>Contact Number<br /><input name="contact_no" type="text" id="contact_no" size="50" />
</p>
<p>college or university name<br />
<input name="college_uni" type="text" id="college_university" size="50" />
</p>
<p>course name<br />
<input name="course_name" type="text" id="course_name" size="50" />
</p>
<p>
address (first line)
<input name="address1" type="text" id="add_one" size="35" />
<br />
address (second line)
<input name="address2" type="text" id="add_two" size="35" />
</p>
<p>
<input name="postcode" type="text" id="postcode" value="postcode" size="10" maxlength="8" />
<input name="town_city" type="text" id="town_city" value="town/city" size="21" />
<input name="city" type="text" id="state" value="state" size="18" />
</p>
<p>
<input name="country" type="radio" id="malaysia" value="malaysia" />
Malaysia
<br />
<input name="country" type="radio" id="singapore" value="singapore" />
Singapore
<br />
<input name="country" type="radio" id="thailand" value="thailand" />
Thailand</p>
<hr />
<p><b>Upload file </b></p>
<p>
Upload file
<input name="file" type="file" size="50" />
</p>
<hr />
<p>Submission</p>
<p>1) All image files must be in CMYK, 300dpi, tiff format, 16.5cm in width, 16cm in height.<br />
2) File name: name.tiff (e.g.: johndoe.tiff).<br />
3)
Send in your entries by September 10, 2007. </p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
<input type="reset" name="Submit2" value="Reset" />
<br />
</p>
- Code: Select all
<?php
global $database;
$database->setQuery( "INSERT INTO #__chronoforms_1 VALUES (
'' , '". date('Y-m-d')." - ".date("H:i:«»s"«»)."' , '".$_POST['form1']."' , '".$_POST['name']."' , '".$_POST['ID_no']."' , '".$_POST['email']."' , '".$_POST['contact_no']."' , '".$_POST['college_uni']."' , '".$_POST['course_name']."' , '".$_POST['address1']."' , '".$_POST['address2']."' , '".$_POST['postcode']."' , '".$_POST['town_city']."' , '".$_POST['city']."' , '".$_POST['country']."' , '".$_POST['file']."' , '".$_POST['Submit']."' , '".$_POST['Submit2']."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>
I got the email with the results displayed in the tables from the form management tab. But I'm not sure where did the file uploads go. I have checked the upload directory via ftp for the chronocontact component but it is seen nowhere.
I'm quite new to this component. Can somebody please help me on this. I the checked the FAQs and throught this forum but it's nowhere to be seen. It's actually quite urgent this one. Any help is much appreciated.
Thanks a bunch to whoever!
Post edited by: gordonling, at: 2007/06/26 12:20
Edited to add code tags. Greyhead<br><br>Post edited by: GreyHead, at: 2007/08/14 17:10
