Skip to content Skip to sidebar Skip to footer

Form Variables Not Passing To Php

I have a simple form and I'm trying to pass the form variable to php and output the value. I have tried to solve this myself with the almighty google but wasn't successful. The htm

Solution 1:

PHP is

  • misconfigured or
  • not configured or
  • not working or
  • not working within HTML files.

You have to configure your webserver that it parses PHP inside HTML files, see here for example:

=> Server not parsing .html as PHP

Solution 2:

The syntax is fine, try to write a sample code snippet like below

<?$a = "hello word!";
echo$a;
?>

and check if php is working.

Post a Comment for "Form Variables Not Passing To Php"