I'm new to this PHP. I donno anything about PHP.I'm a college student and i've a assignment to complete.If possible, can i get the complete code.
I'm a college student and i've to put up a form on my college site such that the mail is sent to their <admission number>@collegesitename.com
Here the there are 3 college domain like college.com ,college.net , college.edu
Admission numbers starting from 4NI00XXXXXX to 4NI01XXXXXX are given email address in college.com domain. And 4NI02XXXXXX to 4NI03XXXXXX are given the email address in college.net domain and so on.
now what i want to do is put 4NI00,4NI01,4NI02,4NI03 in a drop down menu and when they want to send a email if they select 4NI00 the mail should go to that particular domain.In between there should be a text box where they enter the remainin part of their ADMISSION NUMBER.( i.e XXXXXX)
So email should go to: 4NI00<text entered>@<particular domain name>
The FROM email ID is constant i.e its fixed to somethin like <admin@college.com>Please can anybody help me.
The form should be somethin like below:

# If it did, tell the user it was sent and redirect them back to the form

echo "<center><font size=\"1\">"; echo "Your message has been sent to its destination<br>Please wait while you are re-directed to the main page."; echo "<meta content=\"2; url=" .$_SERVER['PHP_SELF']. "\" http-equiv=\"refresh\">"; echo "</font></center>";

} else {

# If it failed, tell the user it failed and redirect them back to the form

echo "<center><font size=\"1\">"; echo "Your message has failed to send to its destination<br>Please wait while you are re-directed to the main page."; echo "<meta content=\"2; url=" .$_SERVER['PHP_SELF']. "\" http-equiv=\"refresh\">"; echo "</font></center>";

}

break;

# If the user has not already filled in the form, present the form for them