Note that there are some explanatory texts on larger screens.

plurals
  1. POExploding drop down values
    text
    copied!<p>I posted a question about this earlier but now i have a new problem that I dont get. Here is the HTML:</p> <pre><code> &lt;select name="contactname"&gt; &lt;option&gt;&lt;/option&gt; &lt;option value="John Smith|Jsmith@email.com"&gt;John Smith&lt;/option&gt; &lt;/select&gt; </code></pre> <p>Here is the error i get now that i made the changes on the Posting page. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 48</p> <p>Here is the Posting Page:</p> <pre><code>&lt;/head&gt; &lt;body&gt; &lt;?php $pickone = $_POST [pickone]; $dropone = $_POST [dropone]; $weight = $_POST [weight]; $length = $_POST [length]; $pallets = $_POST [pallets]; $pickupdate = $_POST [pickupdate]; $equipment = $_POST [equipment]; $loadtype = $_POST [loadtype]; $specialinformation = $_POST [specialinformation]; $commodity = $_POST [commodity]; $closetime = $_POST [closetime]; $deliverydate = $_POST [deliverydate]; $req = $_POST [req]; $contact = explode('|', $_POST[contactname]); $header = "From: " . $contact[0] . " &lt;" . $contact[1] . "&gt;\r\n"; $subject= "New Load"; $from= "You"; $message = " Picks: $pickone Drops: $dropone \n PU Date: $pickupdate Close Time: $closetime Del Date: $deliverydate \n Mode: $loadtype Equipment: $equipment Length: $length Weight: $weight Pallets: $pallets Commodity: $commodity \n Requirements: $req \n Special Information: $specialinformation Contact: $contactname[0] "; mail("email.com", $subject, $message, $header"); ?&gt; &lt;p align="center"&gt;Thank You&lt;br&gt; &lt;input type="button" onclick="window.location.href='page.php';" value=" Post Another Load " /&gt; &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Please let me know what I'm missing because if i dont try to explode contactname it works fine. Thanks,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload