La syntaxe <?php .. est-elle différente avec PHP 5 sous Wamp?
Voici un couple .html .php qui ne tourne pas:
************************************** little_form.html ************** <?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[www.w3.org]; <!-- little_form.html --> <!-- form to use with the php --> <html xmlns = "[www.w3.org]; <head> <title>sample form to take user input in xhtml</title> </head> <body> <h1> This is a sample registration form</h1> Please the field and click Register <!-- post form data to form.php --> <form method = "post" action = "little_form.php"> <input type = "text" name = "fname" /><br /> <!-- create a submit button --> <input type = "submit" value = "Register" /> </form> </body> </html> ******************** voici le little_form.php ******************************* <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[www.w3.org]; <!-- little_form.php --> <!-- read information sent from form.html --> <html xmlns = "[www.w3.org]; <head> <title>Form Validation</title> </head> <body> <?php print( "we re inside the php code" ); print( $_POST); ?> thank you for completing the survey. </body> </html> *************************************************************************************** Les "print" php n'affichent rien. Merci d'avance si vous avez une idée. Bonne journée