How to create a contact form in HTML

HTML, Tutorials 5 Comments »

The finished layout of the contact  form will look like this:

Complete files you can download here: http://www.elena-designer/blog/html-form/html-form.zip

Tutorial Steps:

Copy and Paste the HTML code to your page:


--><h2>Customers Inquiries<br /></h2>

<form action=”contact_form.php” method=”get”>

<table width=”456″ border=”0″ cellpadding=”0″ cellspacing=”0″ bgcolor=”F7F5F2″>

<tr>

<td height=”100″><img src=”images/tit_18.gif” width=”405″ height=”72″ style=”margin-left:24px “></td>

</tr>

<tr>

<td height=”28″ valign=”top”><table width=”456″ border=”0″ cellspacing=”0″ cellpadding=”0″>

<tr>

<td width=”124″ align=”right”>Your name:</td>

<td width=”26″><img src=”images/spacer.gif” width=”1″ height=”1″></td>

<td><input name=”your_name” type=”text” id=”your_name”></td>

</tr>

</table></td>

</tr>

<tr>

<td height=”28″ valign=”top”><table width=”456″ border=”0″ cellspacing=”0″ cellpadding=”0″>

<tr>

<td width=”124″ align=”right”>E-mail address:</td>

<td width=”26″><img src=”images/spacer.gif” width=”1″ height=”1″></td>

<td><input name=”your_email” type=”text” id=”your_email”></td>

</tr>

</table></td>

</tr>

<tr>

<td height=”91″ valign=”top”><table width=”456″ border=”0″ cellspacing=”0″ cellpadding=”0″>

<tr>

<td width=”124″ align=”right” valign=”top” style=”padding-top:3px “>Message:</td>

<td width=”26″><img src=”images/spacer.gif” width=”1″ height=”1″></td>

<td><textarea name=”message” id=”message”></textarea></td>

</tr>

</table></td>

</tr>

<tr>

<td valign=”top”><input type=”image” src=”images/reset.gif” style=”margin-left:200px ” onClick=”reset(); return false;” ><input type=”image” src=”images/submit.gif” style=”margin-left:29px;” onClick=”submit();”> </td>

</tr>

</table><!– –>

</form>

On your server you should have a script that will actually generate and send e-mails to a certain e-mail address.

A sample of this script, images and code you can download here. It’s a PHP script which is supported on most hosting servers.
The html form has two tags: opening <form> and closing </form>. The opening tag is empty. For the form to pass data to our contact_form.php we need to specify two attributes within this tag:

<form action=”contact.php” method=”get”>

The form we are working with has two text input fields and one text area. Each of them should have an attribute called “name”. The original contact form already has them: name=”textfield2″, name=“textfield22″, name=“textarea”
Let’s rename the values of these attributes to more meaning names:

name=”your_name”, name=”your_email”, name=”message”

The same names are used in the sample of contact_form.php :

It’s very important to have the same names of variables we pass from an .HTML page and get in contact_form.php.
The next step is to make the two buttons Reset and Submit work. In our case these buttons are presented by images: <input type=”image”… But they can be also presented by HTML buttons specially designed for this case: <input type=”reset”… and <input type=”submit”… And the third way is to use common text links for this case.

First let’s take the image buttons. In order to make the Reset button function we need to insert additional attribute onClick into the <input> tag with the following code:

onClick=”reset(); return false;”

The reset() function is javascript function that clears the form and return false disables the image button’s default action – passing data to server:

<input type=”image” src=”images/reset.gif” style=”margin-left:338px” onClick=”reset(); return false;”>

For the Submit button we simply add the same onClick attribute but with the submit() javascript function as its value:

<input type=”image” src=”images/submit.gif” style=”margin-left:29px;” onClick=”submit();”>

This is it. The last thing to do is to insert your real e-mail address in the contact_form.php script instead of “ your_email@here.com”

HOPE IT HELPED. ENJOY!!!




Easy WordPress Contact Form Plugins

Help, Tutorials, Wordpress 8 Comments »

1. Contact Form 7

Another highly customizable form plugin. You can add fields and alter the look and feel of your contact form through CSS. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

2. Clean Contact

Clean Contact is a simple contact form for WordPress. It requires less to no configuration and able to run out of the box upon installation. You can specify the Thank You Message and also Thank You Url, which is the URL that users would be redirect to after the form is being sent.

3. Dagon Design Form Mailer

4.WP Contact Form

This plugin also known as Secure Form Mailer, offers a lot of features such as multiple forms, multiple recipients, auto reply, multiple attachments, message template system and also numerous security features.

5.  Tiny Contact Form

Simple Contact Form plugin for WordPress. You can use this plugin to add contact form for both a post or page.

Tags :

Latest News

Tutorials 1 Comment »

Tags :

Is CSS3 really just indulgence for developers and not near ready for usage?

CSS3, Tutorials 2 Comments »

A couple of weeks ago, someone asked me if I am good with CSS3. I’ve been working with CSS for the last 3 years, and before I used tables to position and layout my pages. So I decided to research on all the enhanced implementations of CSS3 code and I also have discovered some excellent tutorial.

The CSS 3 looks promising.  It has become such a big deal in the progressive enhancementing minds of front end web designers/developers and internet companies today. There are many CSS3 enriched and enhanced features that would benefit websites visually for the improved user experience. New enhancements include background with the possible values allowing use of RGBA, HSLA, gradients and even multiple background images.  CSS3 opened up some incredible possibilities with use of rotations, animations and scaling. Enhanced typography   @font-face technique has become more common, and many sites are now employing it.

Surely it’s not a complete list.

Google have recently updated their HTML5ROCKS site, originally launched in June this year, with numerous new demos and tutorials for CSS3. The latest update adds, amongst other articles, a tutorial for CSS3 Web Fonts (with @font-face) offering a number of live demos for many of the new possibilities offered by CSS3. You can visit the site http://www.html5rocks.com

I also found a really nice and useful site with 20+ CSS3 tutorials at http://www.web3mantra.com/2010/10/15/20-best-css3-tutorials.

BUT with good comes the bad! :)

IE family is a headache as always. We’re not really going to be able to use these design features with the IE browser. Unfortunately, the average user tends to use Internet Explorer, since it comes preinstalled with Windows. And what’s more, these people have no intention of switching or upgrading browsers. What they have “works,” and that’s good enough.  As for CSS browser compatibility, if customers don’t want to use Firefox, Safari or Chrome, it is better to develop the site in IE8. There is no point in wasting any time on IE6-7 or lower. I think that the only way to get people away from that accursed browser is to stop coding for it.

IE holding us all back! CSS3 is amazing but seems it’s still in its infancy. :)

Tags :

Fashion Garment Sketching Tutorial

Fashion, Tutorials 1 Comment »

Here are some examples of my drawing, step by step sketching for the lindsay lohan fashion line.

Sketching Tutorial Step 1 Sketching Tutorial Step 1
Sketching Tutorial Step 2 Fashion Design Sketching Tutorial Step 2 Fashion Design
Sketching Tutorial Step 3 Fashion Design Sketching Tutorial Step 3 Fashion Design
Sketching Tutorial Step 4 Fashion Design Sketching Tutorial Step 4 Fashion Design
Sketching Tutorial Step 5 Fashion Design Sketching Tutorial Step 5 Fashion Design

Final Drawing:

Sketch for the lindsay lohan fashion line Sketch for the lindsay lohan fashion line
lindsay lohan fashion line

How to restore deleted blog files from your hosting company.

Tutorials 53 Comments »

Last night while fishing around using FTP, I accidentally deleted few files including my blog’s platform Word-Press. Then I reloaded the backup files from my local computer but my blog and the other pages did not properly functioned (duh). I had the files, but when I tried to click on anything  all I was getting is a 404 message.
I just started the blog and had not yet made a back-up. Yet I had some work I didn’t want to loose or redesign from scratch.

Well if something like this has happened to you, if your database crashed, a file corrupted, or if you accidentally deleted your blog and have no backup whatsoever, don’t lose hope and there is no need to be stressed out. Mama Elena found a way to recover your deleted files. :)

There is a feature called hosting history in Linux hosting that allows you to restore files or directories to their previous state from up to 30 days ago using the file manager.

So here’s how I went about recovering my posts and deleted files with the help of GoDaddy hosting provider.

1.  Log in to your Account Manager.

deleted file recover step 1

deleted file recovery step 1

2. In the My Products section, select Hosting.

deleted file recovery step 2

deleted file recovery step 2

3. Next to the hosting account you want to manage, click Manage Account.

deleted file recovery step 3

deleted file recovery step 3

4. In the Content section of the Hosting Control Center, click the File Manager icon. Then click the History button.

deleted file recover step 4

deleted file recover step 4

5. Use the directory tree to navigate to where the file or folder resides that you want to restore.

6. Below the toolbar, click the calendar icon to open the Quick Pick Calendar and select the date where you would like the file or folder restored. The directory list will refresh and display the version of your hosting account from the date selected.

deleted file recovery step 6

deleted file recovery step 6

7. Click the check box next to the file or folder you want to restore and click Restore in the tool bar.

deleted file recover step 7

deleted file recover step 7

8. In the Restore Files or Directories pop-in, select if you want the files to be copied to a new directory, or if you want to rename the files. When you’re finished, click OK.

deleted file recovery step 8

deleted file recovery step 8

9. Your files will be restored with the attributes you selected. And you’ll see a message saying restore completed successfully.

deleted file recovery step 9

deleted file recovery step 9

That’s a  complete way to recover a blog or any file. Anyone else have tips or stories to share?

To learn more about me and what I do go to http://elena-designer.com Thanks!