HTML - Need Help With If Statement
I'm making a forum that has two types of users - admin(user level = 1) and normal(user level = 0). Only the admin users can create and delete categories from the forum. So i was wondering if I could put an if statement in the code below that would only allow the admin users to see the last two links.
Something like if (signed in & user level = 1) then display the links HTML Code: <h1>My forum</h1> <div id="wrapper"> <div id="menu"> <a class="item" href="/forum/index.php">Home</a> - <a class="item" href="/forum/create_topic.php">Create a topic</a> - //if statement here for admin users <a class="item" href="/forum/create_cat.php">Create a category</a> - <a class="item" href="/forum/delete_cat.php">Delete a category</a> Similar TutorialsOk, Hi all.... I have a registration form setup for signing up for motorcylce classes. What I need is, upon clicking submit, for the form to send the user to 1 of 3 different url's depending on which course they selected. So IF "Course A" is selected -then get url A Any help would be so awesome! Here is my code so far: <table width=80% table border="0"> <tr> <td valign="top"> <div class=contact1><br> <label for="title1">Rider Information</label><br><br> <input type="radio" name="title1" id="title1" class="radiobutton" value="Mrs.">Mrs.</input> <input type="radio" name="title1" id="title1" class="radiobutton" value="Mr.">Mr.</input><br><br> <label for="fname1">First Name</label><br> <input type="text" name="fname1" id="fname1" size="30" class="inputbox required" value="" /><br> <label for="name1">Last Name</label><br> <input type="text" name="name1" id="name1" size="30" class="inputbox required" value="" /><br><br> <label for="street1">Street Address</label><br> <input type="text" id="street1" name="street1" size="30" value="" class="inputbox required" maxlength="100" /> <br> <label for="city1">City, State</label><br> <input type="text" name="city1" id="city1" size="30" class="inputbox required" value="" /><br> <label for="zip1">Zip</label><br> <input type="text" name="zip1" id="zip1" size="30" class="inputbox required" value="" /><br><br> <label for="phone1">Phone</label><br> <input type="text" name="phone1" id="phone1" size="30" class="inputbox required" value="" /><br> <label for="mobile1">Mobile</label><br> <input type="text" name="mobile1" id="mobile1" size="30" class="inputbox" value="" /><br <label for="email1">EMail Address</label><br> <input type="text" id="email1" name="email1" size="30" value="" class="inputbox required validate-email" maxlength="100" /><br><br> <label for="birthdate1">Date of Birth (mm-dd-yyyy)</label><br> <input type="text" name="birthdate1" id="birthdate1" size="30" class="inputbox required" value="" /><br> </div> </td> <td valign="top"> <div class="contact2"><br> <label for="title2">Emergency Contact</label><br><br> <input type="radio" name="title2" id="title2" class="radiobutton" value="Mrs.">Mrs.</input> <input type="radio" name="title2" id="title2" class="radiobutton" value="Mr.">Mr.</input><br><br> <label for="fname2">First Name</label><br> <input type="text" name="fname2" id="fname2" size="30" class="inputbox required" value="" /><br> <label for="name2">Last Name</label><br><input type="text" name="name2" id="name2" size="30" class="inputbox required" value="" /><br><br> <label for="phone2">Phone</label><br> <input type="text" name="phone2" id="phone2" size="30" class="inputbox required" value="" /><br> <label for="mobile2">Mobile</label><br> <input type="text" name="mobile2" id="mobile2" size="30" class="inputbox" value="" /><br> </div> </td> </tr> <tr valign="top"> <td colspan="2"> <hr> <br>How did you find us?<select name="findus" id="findus"><br> <option selected>please select</option> <option value="Google">Internet (Google)</option> <option value="Internet">Internet</option> <option value="Friends">Friends</option> <option value="Newspaper">Newspaper</option> <option value="Dealership">Dealership</option> <option value="Ride Shop">Ride Shops</option> </select><br><br> <hr><br><br> <input type="checkbox" id="agbok" name="agbok" class="inputbox required" /> <label for="agbok">By clicking "Submit" you certify that you have read the <a href="http://arizonamotorcyclesafetycourse.com/new/index.php?option=com_content&view=article&id=11">Terms & Conditions</a>, and Course Waiver and that all information provided is correct and accurate.</label><br><br> </td> </tr> <tr valign="top"> <td colspan="2"> <input type="submit" class="button validate" value="Submit"> </td> </tr> </table> can i put a conditional statement in a .css file ? im having trouble with getting my div & or hr to work in every browser i fix something on 1 browser i loose something from another when im coding the site... i want to know if i can put a statement that if browser internet explore execute this set of rules, elseif execute these set of rules... im working on adding a scrolling text that i found online, but i want the text to pause for 1 second at the beginning of each new topic on the scroll menu i tried adding body.pause(1) but i couldnt get that to work do i need to create a .css for this somthing like <style> pause2 { body.pause(2) } </style> and then call it in a tag <pause2> </pause2> I have tried to use a variable in mailto: in order to protect my email address from spammers. Am I doing something wrong or is it simply not possible? $info="my@email.com"; /*email address is stored in email.inc and is moved to the script with the include() statement.*/ $recipients = '$info'; I have a select box like so Code: <select name="something" Size=10 multiple style="font-family:monospace; font-size:8pt"> <option value='opt1'>Option 1</option> <option value='opt2'>Option 2</option> <option value='opt3'>Option 3</option> ... <option value='opt9000'>Option 9000</option> </select> Now Let's say that I wanted opt45 to be preselected, how do I get the select box to position the scroll bar to where opt45 would be in the list. I've figured out how to preselect things, but the user can't tell because it's 35 lines below the select box. Hello!I would like to know if there is another way preselect OPTION VALUE than what I have done below? If I use what I have done below to dynamically the "SELECTED VALUE=" AREA WITH A _get/$VARIABLE, I will end up with 2 identical entries in my drop-down list (such as 2 AVA entries) and I would like to avoid this. Any ideas on how I could avoid this using a different type of method on selecting a default item? Thank you! Code: <SELECT NAME="custom2"> <OPTION SELECTED="SELECTED" VALUE="Lettering Style ADX">ADX</OPTION> <OPTION VALUE="Lettering Style AJA">AJA</OPTION> <OPTION VALUE="Lettering Style AMZ">AMZ</OPTION> <OPTION VALUE="Lettering Style ATH">ATH</OPTION> <OPTION VALUE="Lettering Style AVA">AVA</OPTION> <OPTION VALUE="Lettering Style BAM">BAM</OPTION> </SELECT> |