I would like to include the following in my css style statment. is it possible?
<option selected value="" class="" style= background: url<?php some php variable; ?></option>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If that portion of HTML code is in a
.phpfile, yes, it is possible : PHP does just generate the output, no matter if the textual data is actually corresponding to CSS, HTML, JS, …Note though that your HTML code, here, is not quite OK : you are missing quotes arround the content of the
styleattribute, you should add parenthesis arround the url, and should useselected="selected".Also note that you need to
echothe content of the variable — and not just use its name.So, basically, you should have something like this :