How to concatinate Please help me ! Its urgent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sriram
Forum Newbie
Posts: 1
Joined: Wed Mar 24, 2004 8:57 am

How to concatinate Please help me ! Its urgent

Post by sriram »

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>
Please can anybody help me.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

$email_addy = $_POST['domain'].$_POST['Number']."@collegesitename.com";
Post Reply