+ 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
17 odpowiedzi
+ 4
is your server running PHP? is it activated? are you on Linux, Windows or Mac?
+ 3
do you have widows on your computer and are you using XAMPP for the server? if so make sure XAMPP is running
+ 3
try reinstalling it
+ 2
share your Script here
+ 2
test.php
<?php
$us=$_POST['user'];
echo $us;
?>
+ 1
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="test.php" method="post">
<input type="text" name="user">
<input type="submit">
</form>
</body>
</html>
+ 1
i was studying php for doing a project..this worked beforenin my computer.. all of a sudden it stopped working yesterday.
+ 1
I tried this simple printing program andbit doesn't work
+ 1
i am using wamp server. and it was running okay
+ 1
Did you receive an error message when you install the program
0
iam just a student. i will share the html and php code here.
0
i tried re installing wamp..and it didn't solve the problem
0
thank you guys...i reinstalled wamp and cleaned the system..now it works fine in Dreamweaver.
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>
0
farooq i got it. cleaned windows and now it works fine
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 ...
0
I think if you use WampServer may be work