Form POST Variable Problem

New to mod_rewrite? This is a good place to start.

Form POST Variable Problem

Postby mehboob » Wed Oct 14, 2009 6:54 pm

Hello Everyone I am new to into Mod_rewrite and need your assistance. I have been trying to solve this for more than 6 hours now and yet no luck

So here is the situation : I would like to use "./login/process" instead of <form action="./index.php?act=login&amp;process" method="post">

Login Page Code
Code: Select all
<a name="login"></a>
    <form action="./login/process" method="post">
        <td width="50%" align="right">{#username#}:</td>
        <td width="50%"><input type="text" name="username" size="40" maxlength="25" /></td>
      </tr>
      <tr>


Bascially login&amp;process is another php instruction file which processes the login instruction using $_POST['variable']

Code: Select all
if (isset($_GET['process'])) {

if (checkpassword($_POST['username'], $_POST['password']) {
...
}

}

I am just being redirect to the new page without the session being assigned.

What rewrite engine instruction should I use to pass the variables and also do the rewrite of the url?

Thank You.
mehboob
 
Posts: 4
Joined: Wed Oct 14, 2009 6:39 pm

Postby mehboob » Wed Oct 14, 2009 8:13 pm

One more thing I would like to add to this is that,

The login will create two cookies, over the program we will use those cookies.

Please help me out!
mehboob
 
Posts: 4
Joined: Wed Oct 14, 2009 6:39 pm

Postby mehboob » Wed Oct 14, 2009 9:15 pm

Ok,
The problem is solved. Basically I was having trouble to setup cookie.

Its solved now!1
mehboob
 
Posts: 4
Joined: Wed Oct 14, 2009 6:39 pm


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

cron