CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Little Help!

Threaded View

  1. #1
    Join Date
    Jan 2011
    Location
    Morocco
    Posts
    17

    Exclamation Little Help!

    I created a VIP Area and the registration folder contains 3 pages, each page has labels or fields if you wanna say, the problem is that i only got the last page infos, yet the first n' second one i dont receive its infos if someone's registered on it,

    i used the method of POST, $_POST

    For example :

    (PAGE 1)
    PHP Code:
    <input name="firstname" maxlength="20" size="20" class="form-input" type="text" validate="required:true , number:true" /> 
    (PAGE 2)
    PHP Code:
    <?
    $FirstName .= $_POST['firstname'];
    ?>

    <form  method="POST" action="PAGE3.php">
    <input type="hidden" name="firstname" value="<?php echo($FirstName); ?>">
    (PAGE3)
    the same again with page 3 fields

    PHP Code:
    <?
    $FirstName .= $_POST['firstname'];
    ?>

    <form  method="POST" action="PAGE3.php">
    <input type="hidden" name="firstname" value="<?php echo($FirstName); ?>">
    Finally I got only the Page3 Posted fields, non of Page1 or Page2 been recieved at all, it comes empty

    PHP Code:
    $message .= "First Name: ".$_POST['firstname']."\n"
    Please help me to fix this..
    Last edited by PeejAvery; May 17th, 2011 at 11:58 AM. Reason: Added php tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured