Jump to content

Saving form data when reporting an err


Foosicle

Recommended Posts

I have a form with the following validation in the header.

 

<?php 
   if(!isset($fromemail) || empty($fromemail) ||
        !isset($fname) || empty($fname) ||
        !isset($lname) || empty($lname) ||
        !isset($message)){
      echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.*********.com/include/createusererror.php">';   
   }else{
      header('Location: http://www.*********.com/profile.php');   
   }
?>

 

It then redirects back to the form, however all form data is lost.

I am lost on how to save their data across this redirect.

Help, masters of the force.

 

It would be really cool to highlight the err on their screen.

 

MOD EDIT: Fixed cratered code tags . . .

Link to comment
https://forums.phpfreaks.com/topic/240475-saving-form-data-when-reporting-an-err/
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.