Forums

Delay on submit

ccorser 17 Jun, 2009
Hi,
I've put a form that grabs an email address, stores address in a database, redirects to more complete registration page and then sends an email to the registrant on this page http://www.smartcompany.com.au/business-information.html.


however after submitting the email address it takes about 2 minutes before the user is redirected to a more complete registration page. If I turn the send email off, it's fine. Is it because I have no server side validation that it's taking two minutes before it redirects to the next page.

I have the following code in the "On Submit code- before sending email"

<?php
header("location: registration/registers.html?subnewsemail=".$_POST['text_3']);
?>


Any suggestions would be greatly appreciated
Max_admin 22 Jun, 2009
Hi,

I'm not sure I can understand this one here but you may try this code for redirect:

<?php
global $mainframe;
$mainframe->redirect('some_link');
?>


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.