I have a form on a site I am working on. 99% of it all works fine, but there is one thing that is not working.
This is the form:
http://www.leighdesignstudio.com/itech/iquote.php
The problem area is the four radio buttons.
actually - just the IT services one.
The validation is all fine. its just when the email confirmation gets sent to the client, one thing is not working. I have spent a while on this and i have it as close as i can get.
If i select IT services - the confirmation email is CORRECT.
However, if i select anything else, the one that is correct will appear, but it will also show that i have selected IT services. I have tried various different things. I will put the relevant code here:
iquote page
Expand|Select|Wrap|Line Numbers
- <label>
- <input type="radio" name="rdGroup" value="iphone" id="iphone" />
- iPhone </label>
- <label>
- <input type="radio" name="rdGroup" value="ipad" id="ipad" />
- iPad </label>
- <label>
- <input type="radio" name="rdGroup" value="ipod" id="ipod" />
- iPod Touch</label>
- <label>
- <input type="radio" name="rdGroup" value="it" id="it" />
- IT issue</label>
Expand|Select|Wrap|Line Numbers
- $it = "iT Services";
- $fullmessage .= "Which service are you enquiring about\r\n";
- $fullmessage .= "---------------------------------------------------";
- if ($rdGroup="iphone") {$fullmessage .= "$iPhone\r\n";}
- if ($rdGroup="ipad") {$fullmessage .= "$iPad\r\n";}
- if ($rdGroup="ipod") {$fullmessage .= "$iPod\r\n";}
- if ($rdGroup!="iphone" || $rdGroup!="ipad" || $rdGroup!="ipod") {$fullmessage .= "$it\r\n";}
- I tried this before - also didn't work.
- if ($rdGroup="it") {$fullmessage .= "$it\r\n";}
- if ($rdGroup="it") {$fullmessage .= "IT";}
Leigh