msirl Posted February 19, 2015 Share Posted February 19, 2015 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 <?php 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"; $errors=1; } if($errors==1) echo $error; else{ $values = array ('rollnumber','principal','name','email','phone'); $required = array('rollnumber','principal','name','email','phone' ); $your_email = "[email protected]"; $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(in_array($value,$required)){ 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 https://forums.phpfreaks.com/topic/294726-i-need-help-with-text-size-in-php-contact-form/ Share on other sites More sharing options...
tryingtolearn Posted February 19, 2015 Share Posted February 19, 2015 In your style sheet look for a line for p.response{} it will have something like font:10px; or font:11px; inside the {} Change that number to the pixel size you desire. font:20px; for example Link to comment https://forums.phpfreaks.com/topic/294726-i-need-help-with-text-size-in-php-contact-form/#findComment-1506139 Share on other sites More sharing options...
msirl Posted February 19, 2015 Author Share Posted February 19, 2015 Perfect! Thanks so much for your help. Link to comment https://forums.phpfreaks.com/topic/294726-i-need-help-with-text-size-in-php-contact-form/#findComment-1506155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.