I would advise you to read some PHP tutorials , and learn stuff. As we are not here to write all the code for you, and it helps you fix small errors like the one with the $_GET statement.
Yes i did understand you, i have shown you how to make something selected, i am not writing it all for you. Please try your self.
All you need to do is add an if statment.
There are two ways ,
first:
<option selected="selected" value="<?php if($a == 4) echo 4; ?>"><?php if($a == 4) echo 4; ?></option>
second:
<option value="2" <?php if($a == 2) echo "selected='selected'";?>>123</option>
<option value="3" <?php if($a == 3) echo "selected='selected'";?>>test</option>
<option value="4" <?php if($a == 4) echo "selected='selected'";?>>something</option>
If you want help dont act like a jerk, W3C compliancy is what you should aim for when coding , and it can cause wierd display errors in some browsers.
If you dont want to listen to our advice , dont ask for it.
maybe because you are on private dedicated servers.
Anyway , register an email with the host and try it, note* to use phpmailer, you need an email registered with the host.
I think it is , thats why the SMTP error is appearing, as when i tried sending emails via mail(); with my hotmail address, it wouldnt send, i contacted my host and they said it has to be one registered on the server.
So i used PHPmailer, and set it in the SMTP settings.
As far as i know the from email , must be registered on the host , unless you set the SMTP email somewhere else , for example by using PHPmailer.
So you need to change the from email to one that is set up on the host.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.