Help: hooking up a contact form

Jrhdesign

New Member
Im somewhat new to webdesign. I need to know how to hook up my contact form. I got the php code- but where does it go? In the same folder as the contact form? (when uploaded?)

And I designed and cut up the website in photoshop- when I bring it into dreamweaver, it wont let me convert the white boxes I made into editable regions for text. Every time I try it distorts the page.

Do I have to make those regions tables? I see many people make these forms in DW but they look horrible.

I cant find an article or youtube tut, and its not even in any of my Dw books. I asked go daddy and they just refer me to a link on the website for the code.

Im trying to code the very thing I am typing in(lol)- but a bit dressed up.

I know Im just missing the mark here- any input would be appreciated.

Jay
 

Edge

Member
contact form

Im somewhat new to webdesign. I need to know how to hook up my contact form. I got the php code- but where does it go? In the same folder as the contact form? (when uploaded?)

And I designed and cut up the website in photoshop- when I bring it into dreamweaver, it wont let me convert the white boxes I made into editable regions for text. Every time I try it distorts the page.

Do I have to make those regions tables? I see many people make these forms in DW but they look horrible.

I cant find an article or youtube tut, and its not even in any of my Dw books. I asked go daddy and they just refer me to a link on the website for the code.

Im trying to code the very thing I am typing in(lol)- but a bit dressed up.

I know Im just missing the mark here- any input would be appreciated.

Jay

Just a comment on your approach really, - I'd use something like Wordpress for your website which has plugins for a contact form. You can edit the templates and get them to look like your design if your css is good enough.
 

ccowan

New Member
To make your contact form work, your entire form can be html how you have it assuming it is set up right. Then set your action to go to the form script:

action="formscript.php"

That will be your only necessary PHP page. Now on your PHP form page, this will be the PHP script:

<?php
$firstname = ($_POST['firstname']);
mail( "[email protected]", "Contact Form Results", "Name is $firstname", "From: [email protected]" ) ;
?>

That is a very simple script that will grab the field from the form with the name of "firstname". Hopefully this gets you going.
 

Jrhdesign

New Member
im specifically stuck at the Photoshop contact document. No PS books Cover it because I have brought it into dreamweaver.

DW only describes making a contact page from scratch in DW. The white box I made in PS for it is described as an image.

<img src="images/Contact_26.gif" width="177" height="24" alt="">

All I want to do is type text in that area. That will be the name, email and comment. the php is pretty much ready to go.

So- Ive tried deleting it and adding a table: Ive tried making it an editable region: nothing will work. What am I doing wrong? I know its probably something simple.

Thanks
 

ccowan

New Member
Well I tend to program everything by hand, but the way I make custom forms is to first create a table with 2 columns and 1 row for each field. Then on the 2nd column, where you want a field, just make your image the background image for that cell. Your image meaning, just an image of the actual field you drew up. Not the whole form. Then on your actual input fields for the form which will be in that cell, add some style code to remove the background color and border so the computer generated form box will be invisible and only your image will show.

If you have a general background for the whole form itself, just make that the table background.
 

Jrhdesign

New Member
thanks everyone: IM still stuck, I deleted the background slice and put input fields in its place. I put a text area, and a submit button. Now all I have to do it put a <form> </form> and name it and it should be good.

However, the form tab breaks up the page like shattered glass. I dont get this, it should be code....should I use div? Everything I do breaks this page up.....any ideas about what Im doing wrong?


If anyone would like to help with this personally I would pay you for your time. I have 3 sites riding on this.
 
Top