PDA

View Full Version : CSS Tableless Form: where's the php file?



altar
12-16-2008, 12:56 AM
1) Script Title: CSS Tableless Form

2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/css-tableless-form/

3) Describe problem: Hello,
I'd like to use this form, but what should I put in the php file to get the information?
Thank you

ddadmin
12-16-2008, 08:52 AM
The code shown is just for the frontpage portion. You'll need to install a form processing script on the backend to get it to work the way you want. See here (http://www.hotscripts.com/PHP/Scripts_and_Programs/Form_Processors/index.html) for a list of them.

altar
12-16-2008, 09:40 AM
Yes, I installed a contact.php script I found here in this forum post (http://www.dynamicdrive.com/forums/showthread.php?t=23948).
However I can only receive an empty email...
Could someone tell me how I can adapt it to the html code of the CSS Tableless form?
Because if I start by creating an entirely new php form, that will require different html, and then different css, am I wrong?
Thanks in advance
here's the code:

<?php

//EDIT THESE 2 FIELDS WITH YOUR INFO
$to = "_YOUR_EMAIL_ADDRESS_";
$subject = "_SUBJECT_OF_EMAIL_";


// NO NEED TO EDIT PAST HERE
$message = "";
foreach($_REQUEST as $k => $v) {
$message .= trim(strip_tags($k)) . ": " . trim(strip_tags($v)) . "<br>";
}

if( !mail($to, $subject, $message) )
{
echo "<p>Could Not Send Email.. Please Try Again Later</p>";
}
else
{
echo "<p>Email Sent. Thank You!</p>";
}
?>