redirecting a changed password etc using form

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 1, 2017   (RSS)

By Twocans - March 1, 2017

Hi yea,
I got it to work, I think its safe anyway, let me know any suggestions to make it safer if you can.

//header("Location: http://www.mysitename.com/index.php?ref=1");

echo "<form action=\"index.php\" method=\"post\" id=\"t1\">";
echo "<input name=\"confirmtest11\" type=\"hidden\" id=\"confirmtest11\" value=\"1\" />";
echo "<script type=\"text/javascript\">document.getElementById('t1').submit()</script>";
echo "</form>";
$_REQUEST = array(); // clear form values
$showSignupForm = false;
}
?>

then on the index page I have

<?php

$blabla = (isset($_POST["confirmtest11"]));
if($blabla != null)
{
echo '<div style="color: #C00;">';
//echo $blabla;
echo "ding dong.<br/>\n";
echo "<br/><br/>\n";
echo '</div>';
}
?>

cheers

Kenny

By ross - March 1, 2017

Hi Kenny

Glad you got that sorted out.

I have gone through your code and there isn't anything jumping out at me as being un-safe.

If you like, we can do a full security audit on your code through consulting.

Just send me an email through consulting@interactivetools.com to get that started.

Let me know any other questions in the meantime.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/