last day (14 days later) » 

6:59 AM
0
Q: PHP - POST is not catching any value, where GET works well

bhvSORRY FRIENDS FOR THIS QUESTION, I TESTED THE SAME CODE IN REAL TIME SERVER. IT WORKED FINE, BUT WHEN THE CODE RETURN IN PHPSTORM IT NOT WORKED. (don't know exactly what the reason ) First.php <form action="second.php" method="post" > Name: <input type="text" name="name" > <input t...

 
bhv
@Script47, sorry friends, just now tested in real time server it worked fine, but when i tested in phpStorm its not working
@Don'tPanic sorry friends, just now tested in real time server it worked fine, but when i tested in phpStorm its not working
 
@bhv does your first.php correctly firing a post request on submit ?.
 
bhv
@RanjanaLK . yeah it working fine.. but in second.php post is not getting any value.. ( i just tested the same code in other server its worked fine. bu t when i write this code using phpStorm in localhost it not working )
 
@bhv can you show me the submit request you see on firebug when you are on localhost
 
bhv
@RanjanaLK don't have much knowledge in firebug. is this what you asked me -> body > form > input[type="submit"]:nth-child(2)
 
6:59 AM
open first.php on you browser ,open firebug, go to net tab on firebug, then hit the submit button. now you can see the request that came to second.php. if you see a POST second.php as the url you have no problem with the request. but if you see GET second.php?name=something then you have a problem with your request
 
bhv
the same code i tested in a server
venkat.co/first.php
its worked fine .
even while using XAMPP also its worked fine
 
7:19 AM
you have no issue in your code. but I can see you are getting a 404 when you're on phpstorm so it must be some issue with phpstorm . you're using build in web server on phpstorm right?
 
bhv
i am new to php
when it asked to locate the php. then i added this . this is php directory where i installed XAMPP E:\xampp\php\php.exe
yeah some problem in php . think it better to work directly on server or use XAMPP
Thanks a lot for showing Interest on this question .. you are awesome!
 
you can see your phpstorm web server configuration on settings->languages & frameworks->php->servers. this server is used if you want to run your php code directly from phpstorm. you can add xampp here as php server and run your php code on xampp directly on phpstorm . this may help if you want to do this confluence.jetbrains.com/display/PhpStorm/…
Personally I always use xampp on my projects and frankly never bothered to configure a web server for php on phpstorm.. It's my pleasure to help you.
 

last day (14 days later) »