Copy link to clipboard
Copied
I had to create a new contact form, however, it's not 'acting' properly when viewed on the internet, however it does when in dreamweaver. Any thoughts as to why?
An outside company originally designed and coded our website and the old code no longer works with the new platform our hosting company is using. And the email link isn't working.
Below are the Style and Source Code I've used.
Style:
#formwrapper {
width: 200px;
height: auto;
background color: #FFF;
}
form {
width: 200px;
height: auto;
background-color: #5A5A5A;
}
fieldset {
background-color: #000;
border: none;
padding: 10px;
}
h10{
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: 16px;
font-weight: bold;
font-color: #FFF;
}
label {
width: 250px;
display: block;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: 14px;
color: #FFF;
margin-top:5px;
margin-right:0px;
margin-bottom:5px;
margin left:0px;
}
input {
width: 250px;
border: thin solid #000;
margin-bottom:10px;
}
textarea {
width: 250px;
border: thin solid #000;
margin-bottom: 10px;
}
.btn{
width: 50px;
height: 20px;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
color: #000;
font-size: 14px;
font font-weight: bold;
background-color:#FFFFFF;
}
<?php
$email="sales@conterraindustries.com";
$name=$_POST['Your Name'];
$phone=$_POST['Your Phone Number'];
$address=$_POST['Your Email'];
$message=$_POST['Your Message'];
mail($mail, $name, $phone, $address, $message,);
Print "Your message has been sent. Thank you"
?>
Source Code:
<form id="formwrapper"><form action="contactform.php" method=post></form>
<fieldset>
<h10>Contact Form</h10>
<label for="name">Your Name</label>
<input name="name" type="text" size="40" max elngth="100" />
<label for="email">Your Email</label>
<input name= "email" type="text" size="40" maxlength="100" />
<label for="phone"> Your Phone Number</label>
<input name="phone" type="text" size="40" maxlength="100"/>
<label for="message">Your Message</label>
<textarea name="message" cols="40" rows="25"></textarea>
<input class="btn" name="submit" type="submit" value=SEND/>
</fieldset>
</form>
Copy link to clipboard
Copied
What's the URL to your online site please?
Copy link to clipboard
Copied
It's the Contact Us Page, our URL: conterraindustries.com
All feedback is greatly appreciated. Thank you
Copy link to clipboard
Copied
This looks like a GoDaddy script.
<form action="_gdForm/webformmailer.asp" method="POST">
Ask GoDaddy which form-to-email processing script you can use now that ASP classic is being discontinued.
If your hosting plan supports asp.net, you need ASPX scripts. If your hosting plan supports php, you need PHP scripts, and so on... Additionally, your markup needs updating to HTML5.
https://www.w3schools.com/html/html_forms.asp
Forms, especially non-secure forms/scripts, are an opportunity for bad actors to hack your site or use your server as a spam relay for their own purposes. Whichever form/scripts you use, they must be secure.
Copy link to clipboard
Copied
I took a look at your website based on the email address from your form. When I reviewed your current site this is the form processor you have ( _gdForm/webformmailer.asp ). That is an ASP form, but the code you are using is PHP. So, first question, does your web host support PHP?
Personally speaking I typically don't recommend many companies build their own forms on websites anymore unless they need something custom. In most cases, I find that an investment in a marketing automation platform from Hubspot, Pardot, etc. is typically more beneficial for the business to have all forms connected to a system that can email and share data with the CRM instantly to avoid emails going to reps.
Copy link to clipboard
Copied
The host company no longer supports asp, which is the problem, and the site was built so long ago that nobody remembers who built the original so I'm trying to figure out how to fix this.
So does the form mailer have to be updated for this to work? The strange part is I just recieved another form, from the website, that still works.
Copy link to clipboard
Copied
As I think it was already said, while classic ASP might be deprecated this is a windows server from godaddy so I would ask them. Alternatively, I would try to go down the marketing or CRM route. Depending on what you use today you may already have options available to you from them, or there are form sites or platforms that help make form building easier. Do you know what CRM your sales team is using?