Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] Re: How redirect a User to another page and send some variable with the post method?

Expand Messages
  • morshed alam
    Thanks Sadikul and every one for help me. Morshed. sadiku1978 wrote: I think this might help. just pass the information in the url when
    Message 1 of 8 , Dec 31, 2005
    • 0 Attachment
       
      Thanks Sadikul and every one for help me.
       
      Morshed.
       


      sadiku1978 <sadiku1978@...> wrote:
      I think this might help. just pass the information in the url when u
      redirect.

             sadi
             www.unicornsoftbd.com

      <?
      include('common_function.inc.php');
      $p =& $_POST; //saves typing
      if (count ($p) > 0)
      {
      $count_user = count_row("tblprofile where user_id = '" .
      $txt_user_id . "'");
      if  ($count_user == 0 )
      {
        echo"<meta HTTP-EQUIV=\"refresh\" CONTENT=\"3;
      URL=profile_basic.php?a1=yourfirstdata&a2=yourseconddata\">";
        exit;
      }
      else
      {
        echo "<font color=\"#FF0000\"><strong>** Your user id already
      exists. Please choose another id **</strong> </font>";
      }// End if  ($count_user == 0 )

      }//End if (count ($p) > 0)
      ?>
      <form name="saveform" method="post" action="<?=$PHP_SELF?>"
      onSubmit="return validateForm()">
      <table id="tbltwo" width="389" border="1">
      <tr>
      <td>User ID</td>
      <td><input type="text" name="txt_user_id"></td>
      </tr>
      <tr>
      <td>Password</td>
      <td><input type="password" name="txt_password"></td>
      </tr>
      <tr>
      <td>Confirm Password</td>
      <td><input type="password" name="txt_confirm_password"></td>
      </tr>
      <tr  bgcolor="#CCCCCC">
      <td height="40" colspan="2" align="center">
        <input type="submit" name="btnContinue" value="Continue >>">
      </td>
      </tr>
      </table>
      </form>












      Yahoo! Shopping
      Find Great Deals on Holiday Gifts at Yahoo! Shopping

    Your message has been successfully submitted and would be delivered to recipients shortly.