[Solved] PHP doesn’t get HTML Form values

[ad_1] You are missing ;’s at the end of your lines. <?php $conn = mysql_connect(localhost, root, usbw); mysql_select_db (‘veiling’); $bid = $_GET[‘bod’]; $name = $_GET[‘naam’]; $item = $_GET[‘item’]; $maxbid = mysql_query(“SELECT MAX(bod) FROM veiling WHERE item=1”); $maxbid = mysql_fetch_array($maxbid); if( $bid =< $maxbid[0] ) { die(); } else { mysql_query(“INSERT INTO veiling (bod, naam, item) … Read more

[Solved] How can I find the source code for a website using only cmd?

[ad_1] You could use the Microsoft.XMLHTTP COM object in Windows Scripting Host (VBScript or JScript). Here’s a hybrid Batch + JScript example (should be saved with a .bat extension): @if (@CodeSection == @Batch) @then @echo off & setlocal set “url=https://www.faa.gov/air_traffic/flight_info/aeronav/digital_products/vfr/” cscript /nologo /e:JScript “%~f0” “%url%” goto :EOF @end // end Batch / begin JScript var … Read more

[Solved] javascript: change color of a single word into a

[ad_1] I think this is what you want: JavaScript : UPADTE JSFiddle : DEMO function mynew() { var myDiv = document.getElementById(‘mydiv’); var contents = myDiv.innerHTML.split(” “); var modText=””; for (var i = 0; i < contents.length; i++) { modText += ‘<span>’ + contents[i] + ‘</span> ‘; } myDiv.innerHTML = modText; window.onclick = myFunction; function myFunction(e) … Read more

[Solved] Style.display block/none problems

[ad_1] Demo FIDDLE HTML <body onload=”disappear()”> <table border=”1″ > <tr> <td><img id=”SHP” src=”https://stackoverflow.com/questions/21594042/Hp/HPSlayerzach/hp2.png”/></td> <td></td> <td><img src=”characters/slayerzach/slayerzach.png”/></td> </tr> <tr> <td><p id=”demo”></p></td> <td ><img id=”att” src=”backgrounds/spacer1.png”/></td> <td></td> </tr> <tr> <td><img align=”right” src=”characters/fighterdan13/fighterDan13.gif”/></td> <td></td> <td><img id=”FHP” src=”hp/HPFighterdan13/hp1.png”/></td> </tr> <tr> <td colspan=”2″ background=”backgrounds/backgroundText.png”> <center><table border=”0″ id=”list”> <tr> <td style=”font-family:verdana;font-size:15px”><center><a onclick=”fire()”>FIRE</a></center></td> <td style=”font-family:verdana;font-size:15px”><center>LIGHTNING</center></td> </tr> <tr> <td style=”font-family:verdana;font-size:15px”><center>WATER</center></td> <td style=”font-family:verdana;font-size:15px”><center>EARTH</center></td> </tr> … Read more

[Solved] Overlay appear above a button

[ad_1] Sorry for being so general on my question. The following is some code I did to get a positive result: <html> <head> <META HTTP-EQUIV=”EXPIRES” CONTENT=”-1″ /> <script type=”text/javascript”> function setVisibility(id) { if(document.getElementById(‘bt1′).value==’Hide Layer’){ document.getElementById(‘bt1’).value=”Show Layer”; document.getElementById(id).style.display = ‘none’; }else{ document.getElementById(‘bt1’).value=”Hide Layer”; document.getElementById(id).style.display = ‘inline’; } } </script> <style type=”text/css”> #container { width:1px; height:1px; position: … Read more

[Solved] Validate two text fields together in html

[ad_1] You din’t explained your problem well, but I think this is what you want: <input id=”first” type=”text”> <input id=”second” type=”text”> <button onClick=”onClick()”>Click me</button> function onClick(){ var first = parseInt(document.getElementById(“first”).value); var second = parseInt(document.getElementById(“second”).value); var sum = first + second; if (sum == 100) { …//Your code here… } } Please tell me if this … Read more

[Solved] align text in the middle of a circle with css [duplicate]

[ad_1] As long as you only have one line of text, a simple trick is to set its line-height to the height of the circle: .circle { background: rgba(72, 156, 234, 1); border-radius: 50%; height: 80px; width: 80px; position: relative; box-shadow: 0 0 0 5px #F1F1F1; margin: 10px; color: #6F0; vertical-align: middle; } .text_circle { … Read more

[Solved] How to clone input text into the other input text using Javascript?

[ad_1] The quickest and easiest way would be to use jQuery. Include the library: <script src=”http://code.jquery.com/jquery-latest.min.js” type=”text/javascript”></script> HTML: <input type=”text” id=”textOne” onkeyup=”clone();” /> <input type=”text” id=”textTwo” /> Javascript: function clone() { $(“#textTwo”).val($(“#textOne”).val()); } Here is a demo: http://jsfiddle.net/5c8a9w39/ 0 [ad_2] solved How to clone input text into the other input text using Javascript?

[Solved] Creating checkboxes which include images [closed]

[ad_1] http://jsfiddle.net/pwoojpv1/ HTML <div class=”check-img” style=”width:100px;height:100px;”> <img src=”http://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/883px-Tux.svg.png” > <div class=”check”>&check;</div> </div> CSS *{ box-sizing:border-box; } .check-img{ position:relative; top:0px; left:0px; } .check-img img{ border:solid 2px gray; width:100%; height:100%; cursor:pointer; } .check{ padding-left:5px; color:grey; height:20px; width:20px; background:grey; position:absolute; bottom:0px; right:0px; } .check-img.checked img{ border-color:orange; } .check-img.checked .check{ background:orange; color:white; } JS $(document).ready(function(){ $(“.check-img”).click(function(){ $(this).toggleClass(“checked”); }); }); … Read more

[Solved] How to add specific PHP code in HTML?

[ad_1] If you need to add a <meta> only for IE,This can use without creating a php file. Try this code insted of your php code. <!–[if IE]> <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ /> <![endif]–> 3 [ad_2] solved How to add specific PHP code in HTML?

[Solved] Centering image on full page with CSS [closed]

[ad_1] Or, you avoid so many ‘bad’ css styling conventions and go for something like below, as stated in the thousands of other SO questions on this matter. option 1 html, body { margin: 0; padding: 0; width: 100%; height: 100%; display: table; } .container { display: table-cell; text-align: center; vertical-align: middle; } .content { … Read more