Forums

This topic is locked

PHP Forms - bigginer in php

Posted 04 Feb 2005 12:21:23
1
has voted
04 Feb 2005 12:21:23 john dibb posted:
I have got a php form to work, i have manage to build a very simple form but i cant get more than one field to work. The forms is going to a contact form so i need 4 field.
Heres the php code so far:

<?php

mail( " ", "Contact Form Results"

,$message,"From: $email", "- " );

header( "Location: www.jdwebsolutions.gi/Thank_You.html" );
?>

Any advice would be much appreciated.
Regards, John

Replies

Replied 04 Feb 2005 19:17:26
04 Feb 2005 19:17:26 Chris Charlton replied:
Well, for starters: <ul><li>Which field(s) don't work?</li><li>Which field <i>does</i> work?</li><li>What are your form field names/ids?</li><li>What version of PHP vars you using? ($_HTTP_POST = PHP3, $_POST = PHP4)</li></ul>


~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 04 Feb 2005 19:38:30
04 Feb 2005 19:38:30 john dibb replied:
fields need are name, contact number, subject. i have email and message working.

Not sure about version all the code in my php file is above

Reply to this topic