export data from form to PHP file...

R

Randy Kohler

hey all,

I'm trying to see if it possible to use an Access Database Form and have the
results entered, exported to an php file? right now I have a php page that
has a form for filling out information like name,address,phonenumber, etc.
then when you hit the submit button it sends out a email via php.

I would like to see if I can use DataAccessPage to be able to populate the
fields and have it then send the email.

well, my question is really not that complicated....let me try again.

I have a form (php/html) that has a form on it. people fill out information,
thn press the submit button, which then sends everything to php and then
emails it out.

question: can I use Access to interact with php? all I want it to do is
populate the form information into the php file(how do I get this into Access?
). the coding looks like this:

<?php

if ($_POST['submit_mail'] = "Submit"){

$body = "Name: ".$_POST['name']."\n";
$body .= "Address: ".$_POST['address']."\n";
$body .= "City: ".$_POST['city']."\n";
$body .= "State: ".$_POST['state']."\n";
$body .= "Zip: ".$_POST['zip']."\n";
$body .= "Country: ".$_POST['country']."\n";
$body .= "Day Phone: ".$_POST['DayPhone']."\n";
$body .= "Evening Phone: ".$_POST['EveningPhone']."\n";
$body .= "Fax: ".$_POST['fax']."\n";


$subject="test message";

$header="From: ".$email."\r\n";

mail("(e-mail address removed)", $subject, $body, $header);
header("Location: SentMail.html");

}


?>

thanks in advance for shedding any light on this!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top