[PHP] Html forms on windows servers

2004-01-22 Thread Carolina Silva Animas
Hi

This is my first experience with php... and I'm already having trouble...

I´m working on an html form for a website which uses php to create an
e-mail. My 'Submit' button has a php document as action. It works great on
my unix server, but when I try to submit the form on my windows server, the
browser replies the following message:

Notice: Undefined variable: radioSocio in F:\ambc\php\formaExpolab.php on
line 4

Notice: Undefined variable: radioEstudiante in F:\ambc\php\formaExpolab.php
on line 5

Notice: Undefined variable: fecha in F:\ambc\php\formaExpolab.php on line 6

... and so on for all my variables...

In the end it adds:

Warning: Cannot modify header information - headers already sent by (output
started at F:\ambc\php\formaExpolab.php:4) in F:\ambc\php\formaExpolab.php
on line 37


This is the php code I'm using in my document:

?php
$message_body = Nombre: $f_nombre\n.
E-mail: $f_email\n.
Edad: $f_edad\n.
Ocupación: $f_ocupacion\n.
Código Postal: $f_cp\n.
Restaurante: $f_restaurante\n.
Sugerencias: $f_coment\n;

mail ([EMAIL PROTECTED], Sugerencias desde el sitio,
$message_body, From: $f_email);
header (Location:
http://test1.mcorporativa.net/californiaPhp/formarecibida.html;);
?

I don't know if it has to do with my server, and maybe its php101... but I
could really use some help.


Thanks,
Carolina

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Html forms on windows servers

2004-01-22 Thread Carolina Silva Animas
Thank you Ü

Now, I don´t get all the warnings, but the php file still doesn't recognize
the values for the variables.
Do you have any clue of why this is happening?

Carolina



-Mensaje original-
De: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 22 de Enero de 2004 10:31 a.m.
Para: 'Carolina Silva Animas'; [EMAIL PROTECTED]
Asunto: RE: [PHP] Html forms on windows servers


On 22 January 2004 14:24, Carolina Silva Animas wrote:

 Hi

 This is my first experience with php... and I'm already
 having trouble...

 I´m working on an html form for a website which uses php to create an
 e-mail. My 'Submit' button has a php document as action. It
 works great on
 my unix server, but when I try to submit the form on my
 windows server, the
 browser replies the following message:

   Notice: Undefined variable: radioSocio in
 F:\ambc\php\formaExpolab.php on
 line 4

   Notice: Undefined variable: radioEstudiante in
 F:\ambc\php\formaExpolab.php
 on line 5

   Notice: Undefined variable: fecha in
 F:\ambc\php\formaExpolab.php on line 6

 ... and so on for all my variables...

This looks like the error_reporting level is set to E_ALL on the Windows
server, and something less than that on the other one.  Look in the  php.ini
files on the servers and see if this setting is different.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php