Lewicide Posted August 18, 2009 Report Share Posted August 18, 2009 First name: Email: Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 I'm guessing that this line from your example is incomplete (and it isn't causing your error): Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 Indeed, I have XAMPP on my computer. I go to the location for the form and then go to the location for the the form response and still nothing. Even if the response is in my tabs and after I do my form nothing is displayed in the response part which is what I want. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 Where are you saving the PHP files? Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 C:\xampp\htdocs\xampp I can get on the actual page, but after submitting the form I can't see the name that has been input. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 Are you sure that the server is on? Can you run other PHP code correctly? Other PHP code that uses GET or POST? As I said, your code example worked just fine for me. And, according to your path, you are trying to access this file (with the server on) using http://localhost/xampp/form.php? Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 Yes that is the site I go to for the form. The form appears and I can fill it in and submit it and whatnot. But when I go: http://localhost/xampp/form_response.php? What I've put into my form is not shown there. Is it shown for you? (only the name of course as that's all I'm asking for). Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 The code itself is fine -- it works fine for me. As I said above, can you run other PHP code correctly? Other PHP code that uses GET or POST? For example, what happens when you view a file in localhost that has this contents: <?php phpinfo(); ?> Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 A clarification... The only time I get a blank screen for the form_response file is if: -- I haven't visited form.php first and entered information/hit submit -- If I try to access the file directly in c:\xampp\etc rather than through localhost -- if the server isn't turned on (and I try to access the file directly, since obviously localhost won't work) -- If the file ends in .html rather than .php Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 The code itself is fine -- it works fine for me. As I said above, can you run other PHP code correctly? Other PHP code that uses GET or POST? For example, what happens when you view a file in localhost that has this contents: <?php phpinfo(); ?> That shows the contents table showing the php info. So it is just the code for me not working. :S Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 Dunno. It sounds like you are doing the right things. The code itself looks fine and runs fine on my machine. You may try reinstalling XAMPP, or removing it and installing WAMP (in general I have found that people seem to have less trouble with WAMP.) http://www.wampserver.com/ Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 Will do then. Will post results. Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 (edited) Dunno. It sounds like you are doing the right things. The code itself looks fine and runs fine on my machine. You may try reinstalling XAMPP, or removing it and installing WAMP (in general I have found that people seem to have less trouble with WAMP.) http://www.wampserver.com/ Wait sorry, didn't see the language change at the side. Edited August 18, 2009 by Lewicide Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 I don't really want to have to watch another video on WAMP. Where do you put the folders to view them from localhost? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 18, 2009 Report Share Posted August 18, 2009 This should get you started: http://www.wampserver.com/en/presentation.php "When you install WampServer, a "www" directory is created (generally c:\wamp\www). Create a directory inside for your project and put your PHP files in it. " Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 18, 2009 Author Report Share Posted August 18, 2009 I'll watch a tut on what to do later as I'm having trouble setting it up right now. But the temptation of watching South Park is too strong. Quote Link to comment Share on other sites More sharing options...
bishwadeep Posted August 19, 2009 Report Share Posted August 19, 2009 First name: Email: Quote Link to comment Share on other sites More sharing options...
Lewicide Posted August 19, 2009 Author Report Share Posted August 19, 2009 First name: Email: Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.