You can use the concatenate character (.) to join strings together like:
Originally Posted by aussie1855
Then we just use the echo statement to output them to the screen.
$firstname = "john";
$fullname = $firstname."".$lastname
echo "First Name:".$firstname."<br />";
echo "Last Name:".$firstname."<br />";
echo "Full Name:".$fullname."<br />";
echo "Full Name Method 2:".$firstname." ".$lastname."<br />";
What do you mean, you need to check if the submitted e-mail address has the same domain as yours?
Q2: my submit_email.php has an entry for a user to input their email address which is then used within the form as a variable called 'email'. However my domain host only allow email from within the domain so i need to hard code the address. How can I do this.
If so you'd need to do a pregmatch of some sort and check that after the @ sign it matches your domain, but i dont know how to do this