Re: problems with PHP code (Please help!)
| From: | Justin French | Date: | Tue, 19 Nov 2002 09:15:29 +0000 |
| Subject: | Re: problems with PHP code (Please help!) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125041@lists.php.net to get a copy of this message | ||
Ask your host to set-up a .htaccess file to turn register_globals ON, or you
need to do some research in the archives for "register globals"... it's been
discussed to death.
Basically, instead of a form value being something like $firsName, it's now
$_POST['firstName'] or $_GET['firstName'] (depending on the the method
specified in the <form > tag).
A quick fix would be to take note of the variables you're expecting from the
form, and re-assign them at the top of your script(s), eg:
<?
$first = $_POST['first'];
$last = $_POST['last'];
$dob = $_POST['dob'];
$favcolor = $_POST['favcolor'];
?>
<html>
...
Good luck,
Justin French
on 19/11/02 6:41 PM, `Yan Grossman (yan@snowbrasil.com.br) wrote:
> Dear Friends,
>
> I run some PHP scripts to deal with sending forms data to my email adress.
> But, my "nice" Host provider upgraded the server to another version of PHP 4
> and I notice that now the scripts are not working.
> I don't receive the emails anymore.
> They say I have to make sure all my code works for PHP 4.23 or later...
> My code is very simple and uses the command mail().
> I don't know much about PHP, but I guess it should be simple to fix my
> problem.
> I attached one of my most simple scripts and hoping that you might be able
> to help me.
> Please help me.
> I really must fix this today.
> Thank you so much.
>
> Yan
>
>
Justin French
--------------------
http://Indent.com.au
Web Developent &
Graphic Design
--------------------