srboj Posted February 24, 2010 Share Posted February 24, 2010 Please i need help! i wrote a simple form : <form method="POST" action="welcome.php"> Username: <input type="text" name="username" size="20"> Password: <input type="password" name="password" size="20"> <input type="SUBMIT" value="Submit" name="SUBMIT"> and when i enter username and password and after i press submit button nothing is displayed on welcome.php!!! i really dont understand what is going on.. and what i am doing wrong. here is welcome.php : <?php echo $_POST['username']; echo $_POST['password']; ?> Can someone please gime any advice or just opinion.. thank you! Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/ Share on other sites More sharing options...
Yucky Posted February 24, 2010 Share Posted February 24, 2010 The form isn't closed, unless you didn't paste all of it. </form> Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017576 Share on other sites More sharing options...
srboj Posted February 24, 2010 Author Share Posted February 24, 2010 sorry... it is not that.. the form is closed..i just didn't copy paste all of it.. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017580 Share on other sites More sharing options...
Yucky Posted February 24, 2010 Share Posted February 24, 2010 Not a clue here then I'm afraid. Can't spot a problem. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017583 Share on other sites More sharing options...
srboj Posted February 24, 2010 Author Share Posted February 24, 2010 so, is it possible that i have problem with wamp configuration..or something like that ??? Anyone.. thanx Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017686 Share on other sites More sharing options...
Rocu Posted February 24, 2010 Share Posted February 24, 2010 Try executing it in the same script perhaps? Something like this: <?php if($_POST['submit']) { echo $_POST['username']; echo '<br />'; echo $_POST['password']; } ?> <form method="post" action=""> username: <input type="text" name="username" /><br /> password: <input type="password" name="password" /><br /> <input type="submit" name="submit" value="Submit!" /> </form> Doubt it solves the problem, but maybe it helps.. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017714 Share on other sites More sharing options...
srboj Posted February 24, 2010 Author Share Posted February 24, 2010 If i execute it in one script... i get feedback...but that is not what i want.. i still don't get it.. i am lost... does anybody else have any other ideas? thanx anyway... Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017742 Share on other sites More sharing options...
PFMaBiSmAd Posted February 24, 2010 Share Posted February 24, 2010 That does indicate that php is working on your server and that there is either something wrong with your form or your form processing code. You would need to post all of both files for anyone one to have a chance at seeing what is causing the problem. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017752 Share on other sites More sharing options...
srboj Posted February 25, 2010 Author Share Posted February 25, 2010 But that is ALL of both files... Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017790 Share on other sites More sharing options...
PFMaBiSmAd Posted February 25, 2010 Share Posted February 25, 2010 You already told us that was not all of the form - sorry... it is not that.. the form is closed..i just didn't copy paste all of it.. If the combined code works, but other code does not, there is something wrong with the code or with what you are doing, such as browsing directly to the file instead of using the URL of the file on your server. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017791 Share on other sites More sharing options...
srboj Posted February 25, 2010 Author Share Posted February 25, 2010 ok .. the only part of code that i didn't copy paste was </form>.. Quote Link to comment https://forums.phpfreaks.com/topic/193254-no-feedback-from-simple-form/#findComment-1017792 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.