Jump to content

[SOLVED] avoid dump......


thenature4u

Recommended Posts

you could unset the variables:

 

<?php

if (!isset($_POST['mySubmitButton'])) {
unset($foo1, $foo2, $foo3); // add each variable you want to unset
header("Location: ". $_SERVER['PHP_SELF'] ."");
exit;
}
else if (isset($_POST['mySubmitButton'])) {
// mysql update or insert here
echo "Thank You Data Has Been Received\n";
}

?>

<form action="<?php echo ". $_SERVER['PHP_SELF'] ."; ?>" method="post">
<!-- Add Input Fields Here -->
<input type="submit" name="mySubmitButton" value="Send">
</form>

Link to comment
https://forums.phpfreaks.com/topic/81150-solved-avoid-dump/#findComment-411782
Share on other sites

Try this

<?php
if (isset($_POST['mySubmitButton'])) {
// mysql update or insert here
header("Location: ". $_SERVER['PHP_SELF'] ."");
exit;
}

?>

<form action="<?php echo ". $_SERVER['PHP_SELF'] ."; ?>" method="post">
<!-- Add Input Fields Here -->
<input type="submit" name="mySubmitButton" value="Send">
</form>

 

Hope this will work.

 

Thanks

--

Tapos Pal

 

Link to comment
https://forums.phpfreaks.com/topic/81150-solved-avoid-dump/#findComment-411803
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.