K, so I am by no means advanced at PHP. Working on an application page which is basically a long form.
I am trying to spruce up the fields a little bit and ran into an issue. Below is the field I am trying to change. It is where they enter their first name.
I am needing to add the following attributes, such as class and style to the above field. I don't know if I'm just too tired or trying the wrong syntax but not wanting to go.
Question
Brian Jackson
K, so I am by no means advanced at PHP. Working on an application page which is basically a long form.
I am trying to spruce up the fields a little bit and ran into an issue. Below is the field I am trying to change. It is where they enter their first name.
<br><b>Legal First Name: *</b> <?php if(empty($_POST['firstname']) and empty($row['FIRSTNAME'])){ echo "Required"; } if (!empty($row)) { echo "<br><input type='text' name='firstname' value=" . $row['FIRSTNAME'] . "><br>"; } else { echo "<br><input type='text' name='firstname' value=" . $_POST['firstname'] . "><br>"; } ?>I am needing to add the following attributes, such as class and style to the above field. I don't know if I'm just too tired or trying the wrong syntax but not wanting to go.
Thanks!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts