Hi guys!
Just a quick question. Is it possible to send an email containing the information submitted by a databound form on <cms:if k_success > ? It seems I can email only hardcoded content
Just a quick question. Is it possible to send an email containing the information submitted by a databound form on <cms:if k_success > ? It seems I can email only hardcoded content

- Code: Select all
<cms:set submit_success="<cms:get_flash 'submit_success' />" /> <cms:if submit_success > <div class="alert-success"><p>Booking done.....</p></div> </cms:if> <cms:form masterpage='bookings.php' mode='create' enctype='multipart/form-data' method='post' anchor='0' ><cms:if k_success > <cms:db_persist_form _invalidate_cache='0' _auto_title='1' /> <cms:send_mail from=k_email_from to=k_email_to subject='New booking from website'> Information regarding the new booking should be displayed here submitted input field 1 content ........... submitted input field 2 content ........... </cms:send_mail> <cms:set_flash name='submit_success' value='1' /> <cms:redirect k_page_link /> </cms:if> .............. .............. </cms:form>