I have a webpage I created in .net 2003. I rename it to .php at the end. I am using mail function, which works fine if I hardcode the values…
<?php mail("[email protected]", "php email test subject html", "PHP Email Success message.", "From: My NameThe above works fine and I get the email.
Now I want to be able to read the values from text boxes on the page. Since it was all done in .net 2003, the button’s click even is a Sub.
Sub button1_onclick
<?php mail("[email protected]", "php email test subject html", "PHP Email Success message.", "From: My NameEnd Sub
But as soon as I replace the hardcoded values with variable names, nothing works…
Sub button1_onclick
<?php mail($to, $subject, $message, "From: My NameEnd Sub
Anyone knows what should look at? I have been tryng to find explanation for this, but cannot find it…
Please help!!!
![]()