ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
another file file upload question > please help (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: another file file upload question > please help
#768
gordonling (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
another file file upload question > please help 1 Year ago Karma: 0  
Firstly, thank you for saving my life. But then again, I need another lifesaver(!) Attached the html codes that I have prepared in the Form Code Tab>Form HTML field.
Code:

<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>
The rest of the fields are empty and i have included the Element titles. While the Auto generated fields are as below:
Code:

<?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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#771
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:another file file upload question > please help 1 Year ago Karma: 22  
Hi,

#1 - in the form attachement tag, u must put this : enctype=&quot;multipart/form-data&quot;

#2- enable file uploads and configure it well then ur files should be at components/com_chronocontact/uploads/

Please let me know if the problem still there

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
#775
gordonling (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:another file file upload question > please help 1 Year ago Karma: 0  
Hi,

Thank you for the fast respond! I have inserted #1 and have did #2 before this. However, it still isn't working. The uploaded files are still not included in the email and are not on the uploads folder... Is there anything else that I might have missed?

Thanks!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#777
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:another file file upload question > please help 1 Year ago Karma: 22  
Could you please put here a screenshot of ur first tab and &quot;uploads&quot; tab at the form edit page ?

Thanks,

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
#784
gordonling (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:another file file upload question > please h 1 Year ago Karma: 0  


--------------




Hi max,

There you go...

Post edited by: gordonling, at: 2007/06/26 15:58<br><br>Post edited by: gordonling, at: 2007/06/26 15:59
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#787
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:another file file upload question > please h 1 Year ago Karma: 22  
Hi,

At screen 2, you must have minimum filesize

At screen 1, you must have &quot; enctype=...etc&quot;, so you omitted the &quot;enctype=&quot;

Cheers

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials