Page 1 of 1

Contact forms

Posted: Sun Dec 20, 2009 9:00 am
by howylad
Hi there how are you doing? - i have a question regarding php - could anyone help?

i have come here to ask if for a bit of help as i am stuck.

I have made the site in dreamweaver, added the required name, email, message boxes to a page called 'contact page' which obvously is html, but need to get this form working. i know that you use php script that you upload to the server, and you link the form to the php script, because i got a rubbish version working. but

is there a simple script that i can use that looks professional and if so;
how do you change it to my form which consists of simply - name, email, message + submit.

also i notice that most websites use the contact.php so how on earth am i going to get this contact page looking good.

does that make sense to you ?
if you could help i would be grateful...thanks in advance.

Re: Contact forms

Posted: Sun Dec 20, 2009 10:34 am
by oscardog
So do you have a script that submits the information?

As if you do, you want to look for CSS help rather than PHP as PHP doesn't control the layout of the page - HTML & CSS does :)

Re: Contact forms

Posted: Sun Dec 20, 2009 10:49 am
by howylad
I did have a script but i want to get a better one, maybe you have one that you could pm or post. you need to change the php script though to fit in with the form dont you ? that is what i dont know how to do and so i need

Re: Contact forms

Posted: Sun Dec 20, 2009 10:53 am
by oscardog

Re: Contact forms

Posted: Sun Dec 20, 2009 11:11 am
by howylad
yeah it could be thanks - this looks like it could help. cheers for this.

Re: Contact forms

Posted: Sun Dec 20, 2009 2:21 pm
by Abdul202
if u like that simble one
http://speedlyrics.com/contact/
i can send u the script i made it my self

Re: Contact forms

Posted: Sun Dec 20, 2009 4:26 pm
by howylad
Yeah that tutorial is a good start definatly. And it seems like a really good site actually.

ok - I have copied that form onto a page in dreamweaver ok called - contact.php.

what do you do now? do you literally copy and paste the 2nd form into a new page called contact_send.php ? then change the email address (Enter your email address $to ='someone@somewhere.com'; ) to your email address where you want the email sending ? is that it or is there something i have missed ?!

big question - then what do you ? do you have to link the contact_send to anything ?

i just dont get how this php works!

Re: Contact forms

Posted: Sun Dec 20, 2009 5:01 pm
by oscardog
howylad wrote:Yeah that tutorial is a good start definatly. And it seems like a really good site actually.

ok - I have copied that form onto a page in dreamweaver ok called - contact.php.

what do you do now? do you literally copy and paste the 2nd form into a new page called contact_send.php ? then change the email address (Enter your email address $to ='someone@somewhere.com'; ) to your email address where you want the email sending ? is that it or is there something i have missed ?!

big question - then what do you ? do you have to link the contact_send to anything ?

i just dont get how this php works!
contact.php is merely a table with a form, but you'll notice in the <form> tag there is "action=send_contact.php" which tells the form that when the person submits to send the data to send_contact.php. All you need to change is the $to variable in send_contact.php to the email you want to email to be sent too - so if you wanted to send the emails to "joebloggs@hotmail.co.uk" you'd change the $to so it looked like:

Code: Select all

$to = 'joebloggs@hotmail.co.uk';
Hope that helps :)

Just make sure you upload them in the same folder!

Re: Contact forms

Posted: Sun Dec 20, 2009 5:23 pm
by howylad
Yeah that should help.

Thanks for your assistance over there. Yeah it seems clear enough. Ill have a go tomorrow. Cheers Pal. Greatfully recieved.