Greetings, Russel.
Russell Masters - Apr 15, 2010 08:56pm
I am using Joomla and have the form working well but instead of returned result can I redirect the person to one of our internal thankyou pages.
To just redirect right away after saving, find the following code in the very end of Solve360ContactSave.php:
// End of template request
*/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h2>Result</h2>
<p>Thank you, <b><?php echo $contactName ?></b></p>
<p>Your data was successfully saved.</p>
</body>
</html>
and change it to:
// End of template request
*/
header('Location: http://example.com/thankyou.html');
exit;
where http://example.com/thankyou.html is one of your thankyou pages.
Russell Masters - Apr 15, 2010 08:56pm
Also, this is what I get. Any thoughts on the error?
Warning: stream_get_line() [function.stream-get-line]: SSL: fatal protocol error in /var/www/vhosts/teamspark.co.nz/httpdocs/Solve360Service.php on line 353
Warning: stream_get_line() [function.stream-get-line]: SSL: fatal protocol error in /var/www/vhosts/teamspark.co.nz/httpdocs/Solve360Service.php on line 353
Result
Thank you, FormTest Test
Your data was successfully saved.
Hmm… this is a bit harder to answer, but I assume that you need to upgrade your PHP5 installation to the last available version.
Although if everything works fine and all that you need is just avoid showing the warning, make the Solve360ContactSave beginning with:
<?php
ini_set('display_errors', '0');
// version 2.0
ini_set… line will turn showing errors off.
Also, if you use redirection tip you won’t need anything because it will be redirecting to your own thankyou page right away.