You are here: Re: [PHP] $_GET and $_POST arrays not working « PHP « IT news, forums, messages
Re: [PHP] $_GET and $_POST arrays not working

Posted by Stephen Johnson on 11/26/05 00:46

You would access them by declaring them as regular variables and then using
the regular variables in your code.

<?php

$username = $_POST['Username'];
$password = $_POST['Password'];
$email = $_POST['Email'];

?>


As a side note - please do NOT turn global variables on in your php.ini
file. There is a good reason for why it is shut off and "good" php does not
need to have it turned on.

Hope that helps .


<?php
/*

Stephen Johnson c | eh
The Lone Coder

http://www.ouradoptionblog.com
Join our journey of adoption

http://www.thelonecoder.com
stephen@thelonecoder.com

continuing the struggle against bad code

*/
?>


> From: Unknown Unknown <phpinfolist@gmail.com>
> Date: Fri, 25 Nov 2005 17:38:02 -0500
> To: Richard Davey <rich@corephp.co.uk>
> Cc: <php-general@lists.php.net>
> Subject: Re: [PHP] $_GET and $_POST arrays not working
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация