Jump to content

faure

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About faure

  • Rank
    Newbie
  1. faure

    class circle not working

    <?php session_start(); $_SESSION['img']="c:\abc5\cmahj.jpg"; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <html> <body> <div class="w3-circle"> <h2>The w3-circle Class</h2> <img src="<?php echo $_SESSION['img'] ?>' class="w3-circle" alt="Car" style="width:100px"> <!-- NOT WORKING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> </div> </body> </html>
  2. faure

    New option for a select with PHP

    thanks you problem resolved
  3. faure

    EASY FOR YOU (php javascript) !!

    thanks you problem resolved
  4. faure

    New option for a select with PHP

    In javascript there is an instruction x.add(option); I look for then same in php do you know ? In advance thanks
  5. faure

    VERY EASY FOR YOU (js with php) !!

    DSONSUK WROTE : Why? php in JavaScript gives impression you want to produce JavaScript code within script tags, why not produce JavaScript code directly. you can only send value of abc to php by using JavaScript to reload the page with ?abc=REF1 querystring if php code is internal, or send to a external php file with same querystring. check out AJAX tutorials. can you give me an exemple in ajax to send the value of a element html and retrieve it in a variable like $x= is my question well formuled ? how reload the page in middle of script ? strange !
  6. Hello (bonjour from PARIS) <script> I have a function with var abc="REF1"; I have here a <?php I need the value of abc here what is the solution ? (an exemple if possible) ?> </script>
  7. faure

    EASY FOR YOU (php javascript) !!

    spirit of my code : <html> here a button on click for script here an element <p with id="demodemo" <script type="text/javascript"> function myFunction() { var abc= "REF1"; document.getElementById('demodemo').innerHTML = abc; ?php here I need abc how ? is there 2 methods ? thanks for your help ?> } </script> </html>
  8. faure

    STRANGE !!! update table td select !!!!

    hello (dsoneduk) the solution (simple) is : document.getElementById('two01').value=x; problem resolved faure
  9. thanks you in advance <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <title>bz881</title> <style> </style> <script type="text/javascript"> </script> </head> <body> <table> <tr> <td> <input type= "text" id = 'two01' value= 'xxxxxxx' > </td> </table> <script type="text/javascript"> function mymyFunction() { var x = document.getElementById('mymySelect').value; <!-- here ok--> document.getElementById('demodemo').innerHTML = x; <!-- here not working --> document.getElementById('two01').innerHTML = x; } </script> <select id='mymySelect' onchange="mymyFunction()"> <option value="Audi">Audi <option value="BMW">BMW <option value="Mercedes">Mercedes <option value="Volvo">Volvo </select> <p id="demodemo">????</p> </body> </html>
  10. <body> <script type="text/javascript"> function Lien() { var x = document.getElementById('liste' ); <!--here !!--> <!--how put the choice into demo ?????????????--> } </script> <div id="myDIV" style="position absolute; left:10px;top:10px;width:50px;visibility:visible;"> <FORM NAME="Choix"> <SELECT id='liste' NAME="aliste" onChange="Lien()"> <!-- liste here ???--> <OPTION VALUE="">Choisir une option <OPTION VALUE="../../copains.html">Les copains <OPTION VALUE="../../plongee/index.html">La plongée </SELECT> </FORM> </div> <p id= 'demo'' </p>
  11. <?php session_start(); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <title>bz888</title> <style> </style> </head> <body> <script type="text/javascript"> function formv() { //alert("1"); // HERE OK //---------------------------------------- document.getElementById(liste).style.visibility = "visible"; //-----------------------HERE DONT WORKING id liste alert("2"); } function Lien() { alert("zz"); i = document.Choix.Liste.selectedIndex; if (i == 0) return; url = document.Choix.Liste.options.value; parent.location.href = url; } </script> <p>first</p> <!-- this form hidden after load --> <form id="liste" name="nameliste" visibility: hidden> <!-- here ok --> <!--------------------------------------------------------> <fieldset> <legend>Personalia:</legend> </fieldset> </form> <!-- button with onclick to put visible the form liste by script formv--> <form id="bouton2" name="bouton2"> <p><input type="button" name="bouton2" value = "OKOK" onclick="formv()" ></p> </form> </body> </html>
  12. this function is not working function getdata() { var txtFile = "c:\test.txt"; var file = new File(txtFile); var str = "My string of text"; file.open("w"); // open file with write access file.writeln("First line of text"); file.writeln("Second line of text " + str); file.write(str); file.close(); alert("fin"); } have you a solution ? thanks
  13. faure

    printer problem

    by faure question obsolete
  14. Hello my question is in the title of the topic I hope a file on the local disk in a repertory to choice
  15. faure

    printer problem

    Hello gourou ! 1 In php.ini I have the extension php_printer.dll I don't found in php.ini matter of printer _default 2 my problem) I use a php program with a shell ?.exe (writed in visual basic) ?.exe is not ok because object printer is not détected alone ?.exe is working well your opinion ? thanks you (merci)
×