Re: Q:Why is my code returning this? Help?

From: Date: Wed, 24 Oct 2001 22:41:43 +0000
Subject: Re: Q:Why is my code returning this? Help?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72179@lists.php.net to get a copy of this message
On Mié 24 Oct 2001 19:41, you wrote: [snip] > > THE PHP HANDLER... > > Your form has been proccessed and sent to ... > <?php > > $to = "dalecommonsform@mjchristianunlimited.com" ; > $subject = "A Dale Commons web site visitor is requesting information!"; > > $message_raw = "My name is $fname, $lname > \r$r1a, $r2a, $r3a\r$r1b\rhere is my contact information:\r$title, > $fname, $lname, \r$m_address,\r$city_state_zip,\rPhone Number: > $phone\rFax: $fax\rThe best time to call is $time_to_call\rMy email > address is $e_address"; > > $message_stripped = stripslashes($message_raw); > > mail ($to, $subject, $message_stripped, "From: > <dalecommons_forms@mjchristianunlimited.com>" ); > ?> > > AND FINALLY THE SENSELESS EMAIL I GET AT THE END... > > My name is , > > , , > I am looking for a loved one. > here is my contact information: > , , , > , > , > Phone Number: > Fax: > The best time to call is > My email address is > > ...... Looks like the variables are not passed correctly or are not being coded to PHP variables (I know there is a PHP option to do this, but can't remember it). Check: magic_quotes_gpc, register_argc_argv and register_globals (I have them all ON). > What in the world? Did I forget everything PHP taught me? What the heck > are those weird commas from and I could swear a form element named > "xname" is called in php via $xname ??? The comas are what you have in the $message_raw variable, but the variables you are passing it ($fname for example) are empty Use var_dump($fname) to see if the variable is set and to which value. Saludos... ;-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#72179) next »