User Profile

Collapse

Profile Sidebar

Collapse
dujmovicv
dujmovicv
Last Activity: Sep 12 '06, 12:32 PM
Joined: Jul 17 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dujmovicv
    replied to PHP in JS?
    in PHP
    Is it possible to use php code inside the JS tags?
    Code:
    <script src="<? =$some_php_variable?>.js" language="JavaScript1.2"></script>
    ?????????
    See more | Go to post

    Leave a comment:


  • dujmovicv
    started a topic PHP in JS?
    in PHP

    PHP in JS?

    Hi!
    I have some menu buttons on my page 'somepage.php' which I've made in JS:
    Code:
    <script language="JavaScript">
    	rollImage1 = new Image; rollImage1.src = "menu_b1_over.gif";
    	defaultImage1 = new Image; defaultImage1.src = "menu_b1.gif";
    	rollImage2 = new Image; rollImage2.src = "menu_b2_over.gif";
    	defaultImage2 = new Image; defaultImage2.src = "menu_b2.gif";
    ...
    See more | Go to post

  • dujmovicv
    replied to PHP select form
    in PHP
    Thank you for your efforts, you helped me a lot to learn PHP. With some corrections in your code, I have solved the problem. :)
    Now I have another question, hope I'm not boring....
    How to set the $language to 1 by default (when the page is being loaded for the first time)?
    [php]
    <?php
    $lang = $_GET["language"];
    ?>
    <select onchange="windo w.location='sel ect.php?languag e='+this.value" >...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    replied to Java - PHP
    I managed to echo a select drop-down menu with 4 languages with an array:
    [php]
    <?php
    $language = $_GET["language"];
    ?>
    <select onchange="windo w.location='sel ect.php?languag e='+this.value" >
    <?php
    $language = array(
    "",
    "English",
    "Deutsch",
    "Magyar",
    "Srpski");...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    replied to PHP select form
    in PHP
    I managed to echo a select drop-down menu with 4 languages with an array:

    [php]
    <?php
    $language = $_GET["language"];
    ?>
    <select onchange="windo w.location='sel ect.php?languag e='+this.value" >
    <?php
    $language = array(
    "",
    "English",
    "Deutsch",
    "Magyar",
    "Srpski");...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    replied to Java - PHP
    Hello iam_clint!

    I'm back again with my probleme....

    So, as I mentioned I've tried to combine php and java to build a dynamic menu with select form. Here is my code (example), I wonder if I'm going on the right way....
    Please help if U have some good ideas... ;-)

    <script language="JavaS cript">

    function jumpmenu(selLan g)
    {
    var s = selLang;
    echo...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    replied to PHP select form
    in PHP
    Hello iam_clint!

    I'm back again with my probleme....

    So, as I mentioned I've tried to combine php and java to build a dynamic menu with select form. Here is my code (example), I wonder if I'm going on the right way....
    Please help if U have some good ideas... ;-)

    <script language="JavaS cript">

    function jumpmenu(selLan g)
    {
    var s = selLang;
    echo...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    started a topic Java - PHP

    Java - PHP

    Hello, I'm new in both Java and PHP and I'm trying to build a drop down menu with options for language select for a web site. I.E. :

    <select onchange="windo w.location='wha tever.php?langu age='+this.valu e">
    <option value="eng" <?if ($language == "eng") {?>selected<?}? >>English</option>
    <option value="ger" <?if ($language == "ger") {?>selected<?}? >>German</option>...
    See more | Go to post

  • dujmovicv
    replied to PHP select form
    in PHP
    Thank you for your quick help!

    There are some errors in your script, I managed to correct some things, but it still doesn't work...

    <?
    $language = $_GET["language"];

    if ($language == 1) {
    ?>
    English
    <?
    }
    if ($language == 2) {
    ?>
    Chinese
    <?
    }
    ?>
    <select onchange="windo w.location='sel ect.php?languag e='+this.value" >...
    See more | Go to post

    Leave a comment:


  • dujmovicv
    started a topic PHP select form
    in PHP

    PHP select form

    I'm new in PHP programming, I suppose that my problem will be a child's-play for experts....
    I need to write a PHP script with a "select" input form, which will offer 4 languages to chose between. When the user clicks on an item in the select list, the menu (buttons), some pictures shall change on the page regarding to the choice.
    Please if exists, send me an example or good links for building web pages in PHP.
    Thank...
    See more | Go to post
No activity results to display
Show More
Working...