Jump to content

evon83

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Posts posted by evon83

  1. This is my sample code:

    Page1:

    <?php
       
    session_start();
    ?>

    <form action="session2.php?" method="Post">
            <table align="center" border=0 cellspacing=5 cellpadding=0 width="100%">


            <table>
              <tr>
              <th align="left">Address :</th>
                  <td><input type="text" size = "55" name="address1"/></td>
                  <td><input type="text" size = "55" name="address2"/></td>
              </tr>
            </table>
            <center><input type="submit" name="submit" value="Submit"><input type="reset" Value="Reset"/></center>
            </form>


    page2:
    <?php
    // page1.php

    session_start();

    $_session['address1']=$_POST['address1'];
    $_session['address2']=$_POST['address2'];

    echo "1:".$_session['address1'];
    echo "
    2:".$_session['address2'];

    session_destroy();

    -------------------------------------------

    my question is:
    after i have clicked on page2....i wanna go back to page1, so click on the back button...
    and when i do that, the data that i have keyed in previously has been erased automatically....
    how to keep my previous data??

    please help!

    thanks!
     


  2. This is my sample code:

    Page1:

    <?php
       
    session_start();
    ?>

    <form action="session2.php?" method="Post">
            <table align="center" border=0 cellspacing=5 cellpadding=0 width="100%">


            <table>
              <tr>
            <th align="left">Address :</th>
                  <td><input type="text" size = "55" name="address1"/></td>
                  <td><input type="text" size = "55" name="address2"/></td>
              </tr>
            </table>
            <center><input type="submit" name="submit" value="Submit"><input type="reset" Value="Reset"/></center>
            </form>


    page2:
    <?php
    // page1.php

    session_start();

    $_session['address1']=$_POST['address1'];
    $_session['address2']=$_POST['address2'];

    echo "1:".$_session['address1'];
    echo "<br>2:".$_session['address2'];

    session_destroy();

    -------------------------------------------

    my question is:
    after i have clicked on page2....i wanna go back to page1, so click on the back button...
    and when i do that, the data that i have keyed in previously has been erased automatically....
    how to keep my previous data??

    please help!

    thanks!
  3. Hello there!

    i know this sounds too eay for you guys but i still couldnt solve the problems!

    I have this form fillin....
    and when user press the enter button,
    and the php code will runs the error checking..

    if there's errors, messages will be displayed and ask them to go back...
    however, how to keep the previous data that they have entered???

    i know if users have to repeat key in the same thing again and again, that would drive them nuts...

    please help!
    and provide some sample code!

    thanks!
  4. indeed mail() is very simple and straightforward....
    but.....i need to include the .eml file for sure...cuz
    im just editing the existing file that i have...

    i have been given the task on how to link these two files together (code.php & activate.eml) files...
    that's why im still struggling on solving the problems..
  5. so let say im writing this code.php....and i wanna include this activate.eml file into my php code.....how can i do that????
    and the .eml file i have to pass the $name and $email from code.php to .eml file??!!

    how can i do that??
    shall i put include "activate.eml" file on top of my code.php file??
  6. so it means there's no way to send those mail directly to inbox instead of junk mail??
    cuz before that they have registered their details and stuff.....

    at first they have been notified...
    and the second email will be sent to them tellin that they are the official member...
    so i have tested the second email

    but still sent to junk mail????
    how to handle that???
×
×
  • 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.