1.11M Members

post field

 
0
 

echo"$u2" seem to be working right. but nothing prints for echo"$p2". i tryed raping $_POST['p'] in isset() function but didnt seem to be working.

<?php
    if(isset($_POST['b'])) 
    {
      $u2 = $_POST['u'];
      $p2 = $_POST['p'];

      echo"$u2";
      echo"$p2";
    }  
?>


<div>
    <form action ='login.php' method = 'POST'>
         <div>
             <p>
                 <input type ="text" name='u' />
             </p>
        </div>

        <div>
            <p>
                <input type ="password" name'p' />
           </p>
        </div>
        ...
        <input type ="submit" name='b' />
        ...
 
1
 

You're missing the = in your password field name property.

You have:
<input type ="password" name'p' />

Should be:
<input type ="password" name='p' />

 
0
 

ops embarrassing...

Question Answered as of 1 Year Ago by GliderPilot
Isn't it about time forums rewarded their contributors?

Earn rewards points for helping others. Gain kudos. Cash out. Get better answers yourself.

It's as simple as contributing editorial or replying to discussions labeled or OP Kudos

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article