dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: html...php question....

  1. #1
    damned...
    Join Date
    Jan 2004
    Location
    France
    Posts
    104

    html...php question....

    suppose we have a string like that ...
    "variable1;value1|variable2=value2"

    or a xml file like that...
    <variable>
    <name>variable1</name>
    <value>value1</value>
    </variable>
    <variable>
    <name>variable2</name>
    <value>value2</value>
    </variable>

    a form like
    <form name="formname">
    <input name="variable1" type="text" value="">
    <input name="variable2" type="text" value="">
    </form>

    question

    do you know how to dynamically
    1)create a string according to the 1st supposition
    2)create a xml file like the one above
    just by giving the formname ?

    3) how to assign dynamically the variables in the form once we have a string or a xmlfile

    If you give me an nice answer....you will be
    SURPRISED very soooooooon !

    ps : you can use javascript or php...for the routines...

    damned ! and THANKS !!

  2. #2
    damned...
    Join Date
    Jan 2004
    Location
    France
    Posts
    104

    I got it...

    Explode and implode...

    a link

    sample
    PHP Code:
        $col explode(";",$data);  
           for (
    $i=0;$i<count($col);$i++) { 
                echo 
    $col[$i].'.';        
      } 
    damned !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center