problema de config .htaccess
| From: | Ricardo Vega | Date: | Sun, 29 Oct 2000 18:08:28 +0000 |
| Subject: | problema de config .htaccess | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-2868@lists.php.net to get a copy of this message | ||
tengo el sigte problema, hice un form y en el action le puse mail.php, que es el sigte:
"#!/usr/local/bin/php
<?php
while (list($key,$value) = each ($HTTP_POST_VARS)) {
$message.=$key."=".$value."\n";
}
if (!empty($email)) {
mail ($to,$subject,$message,"From: $email");
} else {
mail ($to,$subject,$message);
}
Header("Location: $redirect\n");
?>
y en el form puse los sigtes hidden:
<input type=hidden name=to value="enrivega@entelchile.net">
<input type=hidden name=subject value="Desde Sitio Grupo 3D">
<input type=hidden name=redirect value="gracias.html">
en el servidor me dijeron que para que funcionara tenia que crear el archivo .htaccess y dentro del
poner el siguiente mensaje
php_track_vars on
¿ como hago para crear ese archivo?, ayuda porfa, al presionar el boton enviar del form, sale el
siguiente mensaje:
Warning: Variable passed to each() is not an array or object in
/web/disk1/virtual/grupo3d.cl/htdocs/cgi-bin/mail.php on line 4
, los mail me llegan vacios,
despues de haber creado el .htaccess, ya no me llegan mail y ademas me sale el sigte error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your
request.
Please contact the server administrator, www and inform them of the time the error occurred, and
anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.11 Server at www.grupo3d.cl Port 80, ayuda porfa, gracias de antemano
Quique
el sitio es www.grupo3d.cl/contactoframe.htm