WampServer

Apache, PHP, MySQL on Windows 

 
  • Accueil forum
  • Retour à WampServer
  • presentation
  • Download
  • Addons
  • Formations
  • Alter Way

 
Voir le sujet: Précédent•Suivant
Aller à : Liste des Forums•Liste des messages•Nouvelle discussion•Recherche•Connexion•Imprimer la vue
[PHP 5 $_POST]
Envoyé par: universalbitmapper (---.net81-67-152.noos.fr)
Date: 26 October 2005 à 07:56

Bonjour à tous,

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


Options: Répondre•Citer ce Message
Re: [PHP 5 $_POST]
Envoyé par: Romain Bourdon (---.w86-198.abo.wanadoo.fr)
Date: 26 October 2005 à 08:57

tu passes bçen par localhost pour consulter ta page ou tu double cliques dessus?

Romain

Options: Répondre•Citer ce Message
Re: [PHP 5 $_POST]
Envoyé par: universalbitmapper (---.net81-67-152.noos.fr)
Date: 26 October 2005 à 09:28

OOOPS....

Fectivement, j'aurais du y penser. Je croyais qu'on pointait par localhost seulement avec les .php.

Merci bokoo :-)

jb

Options: Répondre•Citer ce Message


Aller à : Liste des Forums•Liste des messages•Recherche•Connexion
Désolé, seuls les utilisateurs connectés peuvent envoyer des messages dans ce forum.
Cliquer ici pour se connecter

design by jidePowered by Alter Way get firefoxget PHP