Jump to content

Tachu

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Tachu

  1. Forget it. I finally got it to work.Final code:

    <?php$info = array('link1' => 'http://link1.com',              'link1' => 'http://link2.com');foreach($info as $name => $link) {echo "<a href='$link'>$name</a><br>";}?>

  2. Ok i'm just trying to make a list of links stored in an array. I have tried with PHP with different codes and didn't work.1st code:

    <?php$info = array('link1', 'http://link1.com',              'link2', 'http://link2.com');foreach($info as $link) {echo "<a href='$link'>$name</a>";}?>

    2nd Code:

    <?php$info = array('link1', 'http://link1.com',              'link2', 'http://link2.com');list($name, $link)echo "<a href='$link'>$name</a>";?>

    So then I tried with javascript...

    <script type="text/javascript">var links = []links[0] = [ "link1" , "http://link1.com" ]links[1] = [ "link2" , "http://link2.com" ]links[2] = [ "link3" , "http://link3.com" ]for(i=0;i<links.length;i++){document.write ('<a href='" + links[i][1] + "'>" + links[i][0] +"</a>');}</script>

    And it still didn't workCan anyone help me please?

  3. lol... i have frontpage dont like it. i also tried PHP Designer that it has JS also but it don't have what i want. also tried HTML Gate Free or something and is also mostly HTML. i already know a lot HTML and im tired of it, can't really do anything with it. anyway i decided to learn JS so then i can keep up with phP but i need to see good JS examples and a program that can do this can help me :)btw if i do start making those topics with the values i'll start to get really annoying and you'll all get tired of me and somday i'll be banned... hehethnx btw

  4. is there any program that allows me to create good javascripts? i know javascript, but all i can create is bugs.... hehe. anyway i'd like a program that, for example, i press a button then a window popsup where i have to insert the values and all that then when i press ok the program creates the code for me?thanks

  5. May I reply to that? :(I think it may be better to learn JavaScript before PHP, they use almost the same syntaxis so it won't bother doing those at same time :)JavaScript is extremely useful over PHP, it manipulates documents at the browser, PHP only at the server :)(At the browser you're able to adjust the page for one user only, which means not-permanent)So this is wat we say is best order of the langs:Html (I say Xhtml, but that is for later use), Css, JavaScript, Php, MySql

    i think you're right. javascripts is also very important and give syou a hang to php also. in php you also need some javascripts to spice it up.so yea html, then css, javascript, php, mysqlxhtml is not used that much (i think) but it'll be an advantage to learn it.
×
×
  • Create New...