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 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; 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/>"; ?> 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 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; Link to comment https://forums.phpfreaks.com/topic/70130-solved-solve-this-problem/#findComment-352208 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.