Jump to content

Back 1 Page to Form


ded

Recommended Posts

Hmmm....you mean something like:

 

<?php

  if(isset($_POST['submit'])) {
    process_form('userinfo');
  }

   echo'
   <form method="post" action="'.$_SERVER['PHP_SELF'].'" />

     <table>
       <tr><td><input type="text" name="name" value="'.$_POST['name'].'" /></td></tr>
       <tr><td><input type="submit" name="submit" value="Submit" /></td></tr>
     </table>

   </form>';

?>

 

Where the form submits to the same page and the user's info is still retained in the form?

Link to comment
https://forums.phpfreaks.com/topic/99637-back-1-page-to-form/#findComment-509711
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.