Paul Rodgers
Well-Known Member
- Reaction score
- 57
Need some help with my contact form. Trying to get it to output name, phone, email, company, subject, and message but it only outputs name, email, and message. http://pritechs.com/contact.html
Indeed. What works for me probably wont work for you nor anyone else, however, giving a potential client every option available is what I prefer to offer. I would also agree that it does not work or appeal to everyone and obviously not everyone likes using a contact form. The situation is not unique however.Yep - It works for you.
I didn't think so......
It works for you.
If they are on your website already they are looking for something its handier than opening up an email and referring back to the website.
I would help, but: Firefox can’t establish a connection to the server at pritechs.com.
That's why I specifically mentioned the HTML "mailto" call on the web page. It greats them with their favorite email program, addresses it and lets them type an email like it was to their best friend.
Guys - I'm not here to argue. Contact pages are so "BIG CORPORATION" and out of date that you really need to review how you use them. I know they work for you, but most of the population hates them.
That's odd. It works on my laptop and phone on chrome. I'll have to look into that.
Worked fine for me. And I could see those fields. Is it not returning them to you?
Yeah they show on the website but I don't get phone company or subject in the emails
How did you get this? Something you picked up and then modified? I notice in the HTML for the page there is a reference for contact.php. Did you look at that file?
Subject is missing in contact.php but I'd think that should not matter. Do you have the old website to fire up and test?
foreach($values as $key => $value){
***if(in_array($value,$required)){***
...
$email_content .= $value.': '.$_POST[$value]."\n";
***}***
}
$numRequiredSubmitted =0;
foreach($values as $key => $value){
if(in_array($value,$required) && !empty($_POST[$value])){
$numRequiredSubmitted+=1;
}
$email_content .= $value.': '.$_POST[$value]."\n";
}
if ($numRequiredSubmitted != count($required)){
echo 'PLEASE FILL IN REQUIRED FIELDS';
exit;
}
I personally stay away from contact pages. For the most part they piss people off. I put my email ( mailto: ) and phone number up on every web page. I ask people to do what is most comfortable for them - call, text, or email me.
In my opinion you should never use a mailto link but I don't even have my phone number in plain text on my site, its just an image of the text. The more popular your site gets the more your email and phone number get extracted and the more spam and telemarketers you get.