alternatively, you can refer to variables set using get/post variables as $_REQUEST['name'] . If you are going to do anything more than displaying the results on the next page (say stick them in a database), you should sanitize your inputs.
On Mon, Mar 15, 2010 at 10:41 AM, Wander Nauta <[email protected]> wrote: > Hi, > To do that, you should enable a setting called register_globals in a file > called php.ini. There may be several of those php.ini files. If there are, > enable register_globals in all of them. > I don't recommend having register_globals on. It introduces large security > risks with careless PHP code. That's why it is off by default. > W. > > On Mon, Mar 15, 2010 at 13:56, pearlfr <[email protected]> wrote: >> >> Hello >> >> Yes, but i don't understand why. >> How can i make the $_POST automatic (implicite) >> >> Thnx >> >> Bye >> >> >> > Message du 15/03/10 à 14h49 >> > De : "Wander Nauta" <[email protected]> >> > A : [email protected] >> > Copie à : >> > Objet : Re: [Cherokee] Pbme formulaire >> > >> > Does this work? >> > >> > <?php >> > >> > echo "resultat : ".$_POST['nom']." ".$_POST['prenom']; >> > >> > ?> >> > >> > W. >> > >> > On Mon, Mar 15, 2010 at 14:40, pearlfr <[email protected]> wrote: >> > >> > > Hello to all >> > > >> > > Please excuse my bad english. >> > > >> > > I have a contact mudule with this text : >> > > =================================================== >> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >> > > "http://www.w3.org/TR/REC-html40/loose.dtd"> >> > > <html> >> > > <head> >> > > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> >> > > <title>Mon formulaire.</title> >> > > </head> >> > > <body> >> > > <form name='formulaire' action='traitement.php' method='post'> >> > > <input name='nom' type='text' size='50'><br> >> > > <input name='prenom' type='text' size='50'><br> >> > > <input name='annuler' type='reset' value='Annuler'> ; >> > > <input name='soumettre' type='submit' value='Envoyer'><br> >> > > </form> >> > > </body> >> > > </html> >> > > =================================================== >> > > >> > > And the result contact code (traitement.php) is : >> > > >> > > <?php >> > > >> > > echo "resultat : ".$nom." ".$prenom; >> > > >> > > ?> >> > > >> > > =================================================== >> > > >> > > This work with Apache, but don't work with Cherokee, i have only >> > > 'resultat >> > > : ', but not the variables. >> > > The php version for fast-cgi is the official version from ubuntu >> > > koala. The >> > > php work fine, i have 'resultat : ' >> > > >> > > Thnx >> > > >> > > Bye >> > > >> > > ____________________________________________________ >> > > >> > > Envie de partager vos photos de vacances ? Voila vous offre 1 Go >> > > d’espace >> > > de stockage sur http://macle.voila.fr ! >> > > >> > > >> > > >> > > _______________________________________________ >> > > Cherokee mailing list >> > > [email protected] >> > > http://lists.octality.com/listinfo/cherokee >> > > >> > >> >> ____________________________________________________ >> >> Envie de partager vos photos de vacances ? Voila vous offre 1 Go d’espace >> de stockage sur http://macle.voila.fr ! >> >> >> > > > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee > > -- Random quote of the week/month/whenever i get to updating it: "Quis custodiet ipsos custodes?": "who shall watch the watchers themselves?" - Juvenal _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
