Weather by You!
Announcements => Promote your site! => Topic started by: soymoe on July 23, 2015, 04:30:50 PM
-
i m download template and this is my site in spanish:
www.climaesperanza.com.ar (http://www.climaesperanza.com.ar)
i try to create a contact page base in blues template, but i fail, is this possible to create a contact page?
-
Hi soymoe,
For contact/comments, you could do it with 2 different techniques:
1 - A simple "mailto" link on a page (clickable link):
<a href="mailto:info@example.com">mail link</a>
Word "mail link" will be a link to send mail to the address info@example.com
2 - A second way is to do a contact page with name, email and message boxes:
You could use file empty.htm (included with Template) as a base page.
Rename it something like contact.php (need to be a PHP page).
You have to use a php script to do it, a simple one could be found at:
http://www.123contactform.com/simple-php-contact-form.html
Best regards,
Jacques
-
Thank you, i need state the format of the other site pages in contact page and add info like phone, facebook and twitter address and e-mal address. if im rename empty page to contact.php this page hold the template format with header image?
-
Hi soymoe,
Yes, page "empty" is a "blank" page that has all the design from the Template
like all other pages, but no content(text). That page is provided as a base
to expand your site... with style! 8)
Regards,
Jacques
-
thank you, im will try and tell you.
-
i was can create the contact page, now i need change the clock time zone to buenos aires argentine
-
Hi soymoe,
Check the section "Setting the clock" in the installation section
of your Template. Link: http://weatherbyyou.com/wb_install.php#install
Regards,
Jacques
-
You can either use some template for contact page and then use some free php contact form script or you can create a custom php contact form on your own. I would go for the latter because these free scripts might have some security vulnerabilities. You can easily create a PHP contact form (https://www.cloudways.com/blog/custom-php-mysql-contact-form/). Just create html form, create and configure MySQL database and then connect it with your PHP file. Create contact form php file and add the following script in it.
<?php
require_once("config.php");
if((isset($_POST['your_name'])&& $_POST['your_name'] !='') && (isset($_POST['your_email'])&& $_POST['your_email'] !=''))
{
require_once("contact_mail.php<strong>");
</strong>
$yourName = $conn->real_escape_string($_POST['your_name']);
$yourEmail = $conn->real_escape_string($_POST['your_email']);
$yourPhone = $conn->real_escape_string($_POST['your_phone']);
$comments = $conn->real_escape_string($_POST['comments']);
$sql="INSERT INTO contact_form_info (name, email, phone, comments) VALUES ('".$yourName."','".$yourEmail."', '".$yourPhone."', '".$comments."')";
if(!$result = $conn->query($sql)){
die('There was an error running the query [' . $conn->error . ']');
}
else
{
echo "Thank you! We will contact you soon";
}
}
else
{
echo "Please fill Name and Email";
}
?>