Jump to content

php not getting values


delickate

Recommended Posts

hi,

I just submit the form having user name and password but not getting feilds values.

my code is as follow

 

 

<?php

 

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

  if (tep_not_null($action)) {

    switch ($action) { 

      case 'process':

        echo $_REQUEST['username']."=sani"; die();

$username = tep_db_prepare_input($HTTP_POST_VARS['username']);

        $password = tep_db_prepare_input($HTTP_POST_VARS['password']);

}

}

 

?>

<form name="login" action="login.php?action=process" method="post">

<table border="0" width="100%" cellspacing="0" cellpadding="2">

  <tr>

    <td class="infoBoxContent">Username:<br><input type="text" name="username"></td>

  </tr>

  <tr>

    <td class="infoBoxContent"><br>Password:<br><input type="password" name="password" maxlength="40"></td>

 

  </tr>

  <tr>

    <td align="center" class="infoBoxContent"><br><input type="submit" value="Login" /></td>

  </tr>

</table>

</form>

 

any body can help in for this oscommerce code

 

Link to comment
https://forums.phpfreaks.com/topic/196603-php-not-getting-values/
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.