I am new in php but i think tha the code bellow is right but it doesnt work
here is the test.html
Name :And here it is the test1.php
<?php $name= $_POST['name']; echo $name; ?>But it doesnt display the name .Can anyone help me ??
I am new in php but i think tha the code bellow is right but it doesnt work
here is the test.html
Name :And here it is the test1.php
<?php $name= $_POST['name']; echo $name; ?>But it doesnt display the name .Can anyone help me ??
You are missing form closing tag in your html.
Hi!
The code seems to be perfect, the only thing is the method syntax.
try this
hope it will help you.
hi I put the in the html code but it doesnt work
I also tried methos=“post” and doesnt work
now my html code is this :
Name :and test1.php is this :
<?php $name= $_POST['name']; echo $name; ?>When I press the buttom submit I go in a blank page …
Please help me . I dont know where is the mistake
Looks like you have no PHP installed, or it is misconfigured. Try to create test.php and put there this line:
[php]<?php phpinfo() ?>[/php]
Then, navigate to this file with your browser.
I put <?php phpinfo() ?> as you told me and now instead of a blank page it shows me :
$name= $_POST[name]; echo $name; ?>
Can you explain me what i did wrong ?
What I suggested is not related to your code. I suggested to create new blank file named test.php and put there just 1 line of code: <?php phpinfo() ?> Then you can open this script in your browser to check if PHP is configured properly on your server.
Ok I did that . I open the script in my browser and its a blank page. What it means? What I have to do now?
This means PHP is not installed or misconfigured.
Can you help me install correctly PHP please?
For an executable system download xampp and follow the directions it tells you.
ok thanks