Forums

how to send different link in email template

san26 04 Jul, 2007
this is really great component, i have seen ever.
i was really upset to add many forms in joomla, but now i really love to add forms in my joomla site..

i have a little problem, i know this can possible with chronoform, coz nothing impossible with chrono form at all. but i dont know how ??

i have a form with a select box, user select any or multiple values.. and its store in my database, and it also send an email with my template its contained a "PDF download link too".. all think working fine.. but.. now i want that PDF link change according to the select value.. HOW IT'S POSSIBLE ???

in more details..

i have added a variable in "onsubmit code" lets say
$test = "abcd";

and echo this varible in my email template
<?php echo $test; ?>

but its not work????????
i know php, but i dont know how to do it ??
please help me out..

PLEASE HELP ME.
Max_admin 04 Jul, 2007
Hi,

Email template can NOT include PHP, one way to achieve what u need is to have some hidden field, and on any check box checked you can us JS to change this field value and so you can have different valuses at email based on this checkbox.

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
san26 13 Jul, 2007
Hi Max & Bob,
i want to notice you that in new version.. active or deactive button not working on front side.. all form display on front either its active or de active..

suggestion: i think it should also have option to delete records from database.. ???


thanks
san
GreyHead 13 Jul, 2007
Hi San,

By 'Active' you mean 'Publish' & 'Unpublish'? I've never really understood what they do but they do work OK for me i.e. the tick changes to a cross etc.

Yes, some more data management might be useful. I think at the moment Max reckons that if you are using database tables then you'll create your own code to work with them. If you need to delete some records then it's easy to do with PHPMyAdmin or MySQL Query Browser.

Bob
This topic is locked and no more replies can be posted.