Where am I going wrong with my HTML code for the following:
<div>
<label for=“pAccess”>Property Access</label>
<select name=“pAccess” id=“pAccess”>
<option value=“”></option>
<option value=“hKey”>Have keys call contact</option>
<option value=“pEmpty”>Have keys property empty</option>
<option value=“wNotify”>Will notify you when we have the keys</option>
<option value=“oAgent”>Other agent has keys call contact</option>
</select>
</div>
Im testing sending a form at the moment online but all Im receiving via email is the values “value”, this is obviously a very silly mistake but one Im unsure to get my head around, and Id imagine it can be corrected fairly simply.
Example email Im being sent - I select on the form “have keys call contact”, but Im being sent hkey.
Anybody that wants my PHP code please get back in touch
You will only be sent the value by your form, so hKey is right. There’s nothing stopping you detecting this value in your code though and substituting it with a more friendly message.
Ive used a PHP generator then manipulated it to add all my additional fields into the form.I could do with telling whats actually needed in this code and what isnt, as to get rid of code bloat.
So if I get this right… I can put the same value/message in the value as compared to what is displayed to the user, so in my example above have the value = “have keys call contact” is this ethically ok or is there an alternative or better solution ?