Jump to content

MrAdam

Members
  • Posts

    489
  • Joined

  • Last visited

Everything posted by MrAdam

  1. can anyone think of a good .. different colour for my theme? here's a few of the shades of blue i've been using so far... want something none-blue to highlight certain parts. -Cheers!
  2. function saveFile(filename) { document.execCommand('SaveAs',null,filename)} <input type="button" value="Save File" onClick="saveFile('__filename__');" />
  3. (i didn't start this) .. does anybody else NOT see an entry above?
  4. so if i had a menu called "C Class" .. and in it was "model 1", "model 2", "model 3", "model 4"... how would i save that and how what i access that?-Thanks for the help!
  5. wouldn't you just call it from the body?
  6. http://www.w3schools.com/about/about_faq.asp ... third question
  7. i have 2 select menus with the id's "type" and "model". When I select something from "type", i want "model" to update with the models of that type. I've already created part of the script to clear the "model" menu, but I was wondering what the best way to store the new options and how to then implement that into a for loop or another loop/if/switch/foreach. There are 25 'types' which all have about 4 to 6 'models' in them, so it's quite a lot of options... - thanks
  8. <?php$x = 1;$y = 2;function myFunction() { global $x, $y; $ans = $x + $y; echo $ans;}?>
  9. yeah try: function chooseme(a){if(a="pword") { closealert(a)} else if (a="pword2") { closealert2(a)} else { document.write("<br /><br /><style="align: center">you have not got access =P</style>")}
  10. you could use getElementById('myTable').insertRow(1) within a loop, set to loop for whatever number of times they select.then set the innerHTML as a standard but change the numbers (ie. extraSomething_1) by using a variable that's incremented each time the loop repeats the code.if that makes sense?inserting rows into a table: http://www.w3schools.com/js/tryit.asp?file...table_insertrowfor loops: http://www.w3schools.com/js/js_loop_for.asp
  11. MrAdam

    Whoa...

    after reading all that in one go i have a bit of a headache...
  12. oh yeah! forgot about the target!
  13. function showName(obj) { var name = obj.name;} <input name="someinput" ondblclick="showName(this);" />
  14. just remove the second one: hdr.php on line 2
  15. .. it's saying it's a problem .. try removing it ..
  16. when i view it im seeing a few errors. do you have "session_start();" in one of the includes? it's saying:Notice: A session had already been started - ignoring session_start() in /home/shopp/public_html/vanyok/phphomework/group/hdr.php on line 2
  17. just it would probably take alot of time to look thru both of the scripts then take the upload code from one and put it in the other and get it to work...
  18. MrAdam

    XHTML and Tables

    http://www.w3schools.com/html/html_layout.asp
  19. try: $name = $_GET['name'];$address = $_GET['address'];$zip = $_GET['zip'];$query = mysql_query("INERT INTO membership ('memberid','name','address','zip','donation') VALUES ('','$name','$address','$zip','')");
  20. tbh i don't think you're going to get someone willing to do that.
  21. if it's blank it's connecting... try this as your test file: <?php$con = mysql_connect("localhost","humane","password");if ($con) mysql_select_db("humane", $con);$query= mysql_query("SELECT * FROM membership") or die("Could not complete query because " .mysql_error()); while($result=mysql_fetch_assoc($query)) { print_r($result); print '<br /><br />';} mysql_close($con);?>
  22. MrAdam

    XHTML and Tables

    i have a question though, how can divs be positioned the same way as tables? columns and rows allow you to put different bits of data right next to each other? only way i can think of with divs is to use position absolute..but then centerting the website gets confusing.... but im not very used to divs, so i may be wrong.and also adobe photoshop uses tables to structure webpages created with image slicing- are they actually going against what is considered the proper way?
  23. what do you want to happen?
×
×
  • Create New...