Jump to content

Search the Community

Showing results for tags 'Conditional'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 6 results

  1. I want to make a form with 3 dropdown which opens specific pages according to the input on HTML. How can I do that ?
  2. mlitch

    if condition

    Can anyone tell me why this Javascript isn't working? (The following is the PHP code:) if ($quantity>$inventory) { echo '<script language="javascript"> var i = confirm("There are '; echo number_format($inventory); echo ' copies in inventory in '; echo $warehouse_name; echo '.nnThis order is for '; echo number_format($quantity); echo ' copies.nnThat is '; echo number_format($difference); echo ' more than are available.nnClick OK to create a backorder for this itemnor Cancel to abort."); if (!i) window.close();'; echo '</script>'; } The idea is simple: A confirm box opens with a message. If the user clicks OK, the PHP code continues. If the user clicks Cancel, the window should close without executing any more PHP code. Right now, it doesn't matter which button you click: the PHP code just continues regardless. How can I fix this?
  3. Hello, I am trying to understand a PHP code but it use a form of grouping conditionals that I do not know and I cannot find in the documentation: for ($i = 1; $i < (1 << $len); $i++){...} if ($i & (1 << $j)){...} Any one know what is the normal form of these conditionals with && and ||? Thanks!!!
  4. Hello internet, I have several blocks of code set up for images based in html but I am also using this page to process a previous form so the file is saved as a ".php" I am using the following code to contain information: <div class="block_1"> <This is where I have an image and two radio buttons> </div> <div class="block_2"> <This is where I have an image and two radio buttons> </div> …..….. <div class="block_100"> <This is where I have an image and two radio buttons> </div> Based on how many images are available for the user to see, I would like to limit how many of these blocks appear. The page's capability is 100 of these blocks. html does not accept if() statements so how could I set it up? I can "$_POST" to a variable to use to have a count of how many images I want displayed - but how do I use that variable to display or hide blocks... some background:I need to have 100 individual blocks set up so the user can select which ones they want to add to their favorite list. However I don’t want the user to see 20 image blocks with radio buttons of images AND 80 "x" images where there is no image to load.
  5. Hello All, I put my question straight here. If my website address is www.abcd.in a ""Click Here"" button should be linked to http://www.XXXXXXXX.com/?r=1234567 [FIXED] If my website address is www.abcd.in/?r=1111111 a ""Click Here"" button should be linked to http://www.XXXXXXXX.com/?r=1111111 ["1111111" Its a 7digit number may vary per user] Please help me a HTML Code with javascript in it for creating a Click here button. Refer: www.click2rupee.com www.click2rupee.com = CLICK HERE Button= http://www.clixsense.com/?r=3488429 www.click2rupee.com/?r=12312312 = CLICK HERE Button= http://www.clixsense.com/?r=12312312 Thanks All.
  6. Hello internet. I am starting to work with media Querys (like ones below): @media screen and (max-width : 460px) { .someclassname {display: block;} } I am struggling to style IE10 browsers and below (I anticipate half of my users will be IE folks) because the media querys will not work for them. I can use the conditional statement below but the browser will still attempt to put the rest of the code on the page making it look all screwed up: <!--[if lte IE 8 ]> SOME CODE <![endif]--> A BUNCH MORE CODE How do I use html conditional statements to get rid of “A BUNCH MORE CODE” on the site?
×
×
  • Create New...