1) Script Title: CSS Tableless Form
2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ableless-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
1) Script Title: CSS Tableless Form
2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ableless-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
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 for a list of them.
DD Admin
Yes, I installed a contact.php script I found here in this forum post.
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 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>";
}
?>
Bookmarks