Jump to content

I need help with text size in php contact form

Go to solution Solved by tryingtolearn,

Recommended Posts

I am using a php contact form and everything is working fine. Just one thing...


After the user submits the form a "Message sent!" pops up under the form. Right now the text is quite small. How can I increase that text size?


Any help for this beginner would be greatly appreciated! Here is the php code





if(!$_POST) exit;


$email = $_POST['email'];



//$error[] = preg_match('/\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i', $_POST['email']) ? '' : 'INVALID EMAIL ADDRESS';

if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email )){

$error.="Invalid email address entered";



if($errors==1) echo $error;


$values = array ('rollnumber','principal','name','email','phone');

$required = array('rollnumber','principal','name','email','phone'



$your_email = "admin@edev.ie";

$email_subject = "A new message from the CAT4 Indicator Study Reply Form - ".$_POST['rollnumber'];

$email_content = "A new message from the CAT4 Indicator Study Reply Form:\n";


foreach($values as $key => $value){


if ($key != 'subject' && $key != 'company') {

  if( empty($_POST[$value]) ) { echo 'PLEASE FILL IN REQUIRED FIELDS'; exit; }


$email_content .= $value.': '.$_POST[$value]."\n";




if(@mail($your_email,$email_subject,$email_content)) {

echo 'Message sent!'; 

} else {

echo 'ERROR!';




Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.