PHP and mail forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ricardo Lopes wrote: 

> There are several ways to do this. 
> Some people like the approach: 
>  
> if ($submit) { send_email(); } 
>  
> or you can put a hidden field in your form, like op: 
>  
> <input name="op" type="hidden" id="op" value="send" /> 
>  
> and use: 
>  
> if (isset($HTTP_GET_VARS['op']) && ($HTTP_GET_VARS['op'] == 'send')) 
> { 
>     send_email(); 
> } 

Thanks again, Ricardo. I now have the form communicating with the server. 

I think that I might have an error in my script: 

Where I join together the value of the passed variable ("$myrow[3]") and the string  
containing the domain ( $string="@somedomain.com")  I used: 

 $to_name="$myrow[3]$string" 

If the passed variable's value is, for instance, "smith", then does my $to_name become: 

smith@xxxxxxxxxxxxxx 

On hitting the submit button, I see the server being called and data being sent, but  
nothing is being received. I'm just wondering if I've appended those two things correctly. 

TIA for your continued assistance. 

Cheers --- Phil 

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux