lovelyjitu Posted September 21, 2007 Share Posted September 21, 2007 Hi The code:-- <html><head></head><body> <?php $a = $_POST['Account']; $p = $_POST['Password']; echo "Account: ", $a; echo "Password: ", $p; ?> </body> </html> ================== And it display:-- Account: jituPassword: 20 But I want to print it as:- Account: Jitu Password: 20 So plz tell me what changes should be done in my code as i given. Thanks and regards lovelyjitu Quote Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/ Share on other sites More sharing options...
phpwonderkid Posted September 21, 2007 Share Posted September 21, 2007 try this and u will be fine echo "Account: ".$a."<br>"; echo "Password: ". $p; Quote Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/#findComment-352200 Share on other sites More sharing options...
bighippo Posted September 21, 2007 Share Posted September 21, 2007 use html code <br/> <html><head></head><body> <?php $a = $_POST['Account']; $p = $_POST['Password']; echo "Account: " . $a ."<br/>"; echo "Password: " . $p ."<br/>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/#findComment-352202 Share on other sites More sharing options...
lovelyjitu Posted September 21, 2007 Author Share Posted September 21, 2007 Hi, I checked it but still it give output as:-- Account: jitu Password: 12 Quote Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/#findComment-352204 Share on other sites More sharing options...
phpwonderkid Posted September 21, 2007 Share Posted September 21, 2007 after trying this ? echo "Account".$a."<br>"; echo "Password".$b; Quote Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/#findComment-352208 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.