<div id="dd" class="wrapper-dropdown-3 menu-869" tabindex="1">
<ul class="dropdown" name="menu-869">
<li><a href="#" value="Classic Mail"><i class="icon-envelope icon-large"></i>Classic mail</a></li>
<li><a href="#" value="UPS Delivery"><i class="icon-truck icon-large"></i>UPS Delivery</a></li>
<li><a href="#" value="Private Jet"><i class="icon-plane icon-large"></i>Private jet</a></li>
Then how would you pull an unordered list value to send in an email with PHP?
Originally Posted by cbVision
would something like this work?
just give the unordered list a name to call?
$body .= "Email: ".$_REQUEST['Email']." \n";
Typically, you'd submit your data to a PHP file using a form. For example:
Your mail.php would look something like this:
<form method="post" action="email.php">
<input name="email" type="text" />
<input type="submit" />
$to = $_REQUST['email'];
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "email@example.com";
$headers = "From:" . $from;
echo "Mail Sent.";
Thank you very much for your help. I will see what I can do.
Here's a example of how you could pass the value of a list item to a hidden form value then submit the form when it's clicked:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)