+ 3

Php scripts not working.

i tried to get values from a form using post. and its not working. when i ckick submit the next page just shows the whole php script

4th Feb 2017, 6:13 AM
Richu Thankachan
Richu Thankachan - avatar
17 ответов
+ 4
is your server running PHP? is it activated? are you on Linux, Windows or Mac?
4th Feb 2017, 6:38 AM
Mario L.
Mario L. - avatar
+ 3
do you have widows on your computer and are you using XAMPP for the server? if so make sure XAMPP is running
4th Feb 2017, 10:48 AM
Mario L.
Mario L. - avatar
+ 3
try reinstalling it
4th Feb 2017, 10:51 AM
Mario L.
Mario L. - avatar
+ 2
share your Script here
4th Feb 2017, 6:56 AM
Arpan Lunawat
Arpan Lunawat - avatar
+ 2
test.php <?php $us=$_POST['user']; echo $us; ?>
4th Feb 2017, 9:26 AM
Richu Thankachan
Richu Thankachan - avatar
+ 1
<!DOCTYPE html> <html> <head> </head> <body> <form action="test.php" method="post"> <input type="text" name="user"> <input type="submit"> </form> </body> </html>
4th Feb 2017, 9:24 AM
Richu Thankachan
Richu Thankachan - avatar
+ 1
i was studying php for doing a project..this worked beforenin my computer.. all of a sudden it stopped working yesterday.
4th Feb 2017, 9:27 AM
Richu Thankachan
Richu Thankachan - avatar
+ 1
I tried this simple printing program andbit doesn't work
4th Feb 2017, 9:27 AM
Richu Thankachan
Richu Thankachan - avatar
+ 1
i am using wamp server. and it was running okay
4th Feb 2017, 10:50 AM
Richu Thankachan
Richu Thankachan - avatar
+ 1
Did you receive an error message when you install the program
6th Feb 2017, 8:43 AM
Alaa Mostafa
Alaa Mostafa - avatar
0
iam just a student. i will share the html and php code here.
4th Feb 2017, 9:11 AM
Richu Thankachan
Richu Thankachan - avatar
0
i tried re installing wamp..and it didn't solve the problem
4th Feb 2017, 12:32 PM
Richu Thankachan
Richu Thankachan - avatar
0
thank you guys...i reinstalled wamp and cleaned the system..now it works fine in Dreamweaver.
4th Feb 2017, 2:15 PM
Richu Thankachan
Richu Thankachan - avatar
0
Try this.. <!DOCTYPE html> <html> <head> </head> <body> <form action="test.php" method="post"> <input type="text" name="user"> <input type="submit" value="submit"> </form> </body> </html>
4th Feb 2017, 7:39 PM
Farooq Ahmad
Farooq Ahmad - avatar
0
farooq i got it. cleaned windows and now it works fine
5th Feb 2017, 3:15 AM
Richu Thankachan
Richu Thankachan - avatar
0
i thing you should run your php code in localhost i mean open your browser then type url localhost/ then go to the dirctory where you have your html form and run... then it works if the php code has no errors... or else there is another possible case where the action page should be saved with .php extension ...
5th Feb 2017, 10:15 AM
ram b
0
I think if you use WampServer may be work
5th Feb 2017, 7:29 PM
Hana Omar
Hana Omar - avatar