ouchthathurts
Power Member
- Feb 16, 2011
- 623
- 812
Hey guys,
I bought a really nice theme from themeforest last week, first time ever buying a theme and have been waiting since then to get support for one extremely annoying problem.
I got a php email form from some guys here at BHW which works amazingly, the only problem is the 'submit' button is ugly compared to the rest of the page.
Here is the code
<?php
if(isset($_POST["submit"])) {
$firstName = htmlspecialchars(trim($_POST["firstName"]));
$lastName = htmlspecialchars(trim($_POST["lastName"]));
$email = htmlspecialchars(trim($_POST["email"]));
$website = htmlspecialchars(trim($_POST["website"]));
$message = "First name: ".$firstName."\n Last Name: ".$lastName."\n Email: ".$email."\n Website: ".$website;
mail("[email protected]", "Sign Up", $message);
}
?>
<div class="sign-up-form">
<form action="" method="POST">
<p>Sign up for this awesome service, <em>it'll only take a second!</em></p>
<ul>
<li><label>First Name</label>
<input type="text" name="firstName" /></li>
<li><label>Last Name</label>
<input type="text" name="lastName" /></li>
<li><label>Email Address</label>
<input type="text" name="email" /></li>
<li><label>Website</label>
<input type="text" name="website" /></li>
<input type="submit" name="submit" value="Submit" />
</ul>
</form>
<div class="cleaner"></div>
<a href="./sign-up.php" class="call-to-action"> What are you waiting for?<strong>Get it Now</strong></a>
</div>
What im trying to do is have the class="call-to-action" be the input type='submit' button. Do you think this is possible?
Heres a demo of the theme.
As you can see the div class "cleaner" / class="call-to-action" has a really nice sign up button that I would like to use.
Any help or tips would be greatly appreciated as my website is practically ready to go apart from this one annoying problem.
Dam my hack n slash coding skills
I bought a really nice theme from themeforest last week, first time ever buying a theme and have been waiting since then to get support for one extremely annoying problem.
I got a php email form from some guys here at BHW which works amazingly, the only problem is the 'submit' button is ugly compared to the rest of the page.
Here is the code
<?php
if(isset($_POST["submit"])) {
$firstName = htmlspecialchars(trim($_POST["firstName"]));
$lastName = htmlspecialchars(trim($_POST["lastName"]));
$email = htmlspecialchars(trim($_POST["email"]));
$website = htmlspecialchars(trim($_POST["website"]));
$message = "First name: ".$firstName."\n Last Name: ".$lastName."\n Email: ".$email."\n Website: ".$website;
mail("[email protected]", "Sign Up", $message);
}
?>
<div class="sign-up-form">
<form action="" method="POST">
<p>Sign up for this awesome service, <em>it'll only take a second!</em></p>
<ul>
<li><label>First Name</label>
<input type="text" name="firstName" /></li>
<li><label>Last Name</label>
<input type="text" name="lastName" /></li>
<li><label>Email Address</label>
<input type="text" name="email" /></li>
<li><label>Website</label>
<input type="text" name="website" /></li>
<input type="submit" name="submit" value="Submit" />
</ul>
</form>
<div class="cleaner"></div>
<a href="./sign-up.php" class="call-to-action"> What are you waiting for?<strong>Get it Now</strong></a>
</div>
What im trying to do is have the class="call-to-action" be the input type='submit' button. Do you think this is possible?
Heres a demo of the theme.
As you can see the div class "cleaner" / class="call-to-action" has a really nice sign up button that I would like to use.
Any help or tips would be greatly appreciated as my website is practically ready to go apart from this one annoying problem.
Dam my hack n slash coding skills
Last edited: