Forums

form not saving data to db or passing to email

concep86@yahoo.com 25 Apr, 2008
I have attached my form....

GreyHead originally helped me get the form to email an attachment, but now the form does not save my data in the database....it does save ip and some other data... just not my data....

So I want to change the functionality of the form... instead of emailng me the attachment, I want to simply upload the file and send a link in the email...

but it is not even saving the file to the db....

Help... Please...


P.S. I will be purchasing the licensing once I get the site completed.

Thanks

[file name=email_transfer.cfbak size=8329]http://www.chronoengine.com/components/com_fireboard/uploaded/files/email_transfer.cfbak[/file]
GreyHead 27 Apr, 2008
Hi concept86,

You seem to have put all the html from a page - headers and all into the Form HTML. In particular - the <form> tags *must* not be there, ChronoForms creates its own form tags and browsers get very confused when they are nested.

You cna leave the css (though you should put type="text/css" in the tag, but take out the headers, the body tage and the form tags.

Bob
concep86@yahoo.com 29 Apr, 2008
GreyHead,

Ok... I cleaned up the form as suggested....

The form is still attaching the file.

I dont want the file attached... due to large size...

I only want to email the name of the file being uploaded...

Can this be accomplsihed?

Also, when the file is uploaded... it appends a date/time stamp to the file... This new file name is the one i want to pass in the email....

Thanks...
concep86@yahoo.com 29 Apr, 2008
double post ... sorry<br><br>Post edited by: [email]concep86@yahoo.com[/email], at: 2008/04/29 23:40
Max_admin 01 May, 2008
Hi,

In chronocontact.php, find :


JUtility::«»sendMail($from, $fromname, $recipient, $subject, $html_message, true,
	       $ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );


replace $attachements with NULL

its better to keep the date time stamp!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
concep86@yahoo.com 02 May, 2008
I am not trying to remove the date time stamp... I want to pass the file name to the email... what i have done in my email template... is include the url info .. so that the users email has a link to the file for donwload....

like this

http://www.mywebsite.com/components/com_chronocontact/upload/ {plan_file}

So i need the actual file name that is uploaded....
Max_admin 03 May, 2008
Hi,

In chronocontact.php find this line :

$attachments[$allowed_s2[0]] = $uploadedfile;

and put this line below it :

$_POST[$_FILES[$allowed_s2[0]]['name']] = $uploadedfile;

let me know how it works!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}