1,105,197 Community Members

post field

Member Avatar
hwoarang69
Posting Pro
572 posts since Feb 2012
Reputation Points: -4 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 9 [?]
 
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' />
        ...
Member Avatar
GliderPilot
Posting Whiz in Training
295 posts since Sep 2006
Reputation Points: 31 [?]
Q&As Helped to Solve: 48 [?]
Skill Endorsements: 14 [?]
 
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' />

Member Avatar
hwoarang69
Posting Pro
572 posts since Feb 2012
Reputation Points: -4 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 9 [?]
 
0
 

ops embarrassing...

Question Answered as of 1 Year Ago by GliderPilot
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article