User Profile

Collapse

Profile Sidebar

Collapse
sunbin
sunbin
Last Activity: Mar 11 '08, 01:40 PM
Joined: Feb 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How can i check the checked property of each checkbox, I tried by adding this code in the my javascript function before submitting to the PHP handler:

    .....

    else if(theForm.elem ents[i].type == "checkbox" && theForm.element s[i].checked == true){ //Handle checkbox's
    formdata = formdata + theForm.element s[i].name + "=" + theForm.element s[i].value + "&";...
    See more | Go to post

    Leave a comment:


  • problems when submitting 'Checkboxes with the same name' with Ajax Post and PHP

    Hi,

    I am having in a Trouble when working with dynamic checkboxes (i.e. checkboxes with the same name, e.g. <input type="checkbox" name = "check[]" value="dynamic integer value">)

    I have submitted an HTML form (which contains dynamic textboxes and dynamic checkboxes with a Post Button(input type="button")) by using Ajax function. (onClick="retur n ajaxFunction(do cument.getEleme ntById('formid' ));")...
    See more | Go to post
    Last edited by acoder; Mar 10 '08, 02:58 PM. Reason: Added code tags

  • sunbin
    replied to Milliseconds to HH:MM:SS ??
    in PHP
    ThanX ronverdonk for ur ideas !

    I expect the same again and again !

    Sunbin
    See more | Go to post

    Leave a comment:


  • sunbin
    replied to Milliseconds to HH:MM:SS ??
    in PHP
    Thanks Ronverdonk,

    Finally, i developed a script block to convert millisecond into HH:MM:SS format. I develped this script to display a video file (.flv) duration in that format.

    My script blcok is :
    [php]
    <?php
    //milliseconds to hh:mm:ss by <sunbin>sunbin. np@gmail.com
    $miliseconds=90 0000;
    $seconds= $miliseconds/1000;
    //for seconds
    if($seconds> 0)
    {...
    See more | Go to post

    Leave a comment:


  • sunbin
    replied to How to convert timestamp into mm:dd:yy format.
    in PHP
    hi,

    i have used this code block many times,

    Code:
    <?
    
    $time_stamp=time(); //gives timestamp
    $date_format=date("m:d:y",$time_stamp); // formats timestamp in mm:dd:yy 
    
    print $date_format; // results here ... 02 : 11 : 07
    
    ?>
    Solved ???

    Sunbin
    See more | Go to post
    Last edited by Dormilich; Oct 8 '10, 05:28 AM.

    Leave a comment:


  • sunbin
    started a topic How to make an HTML form more dynamic ?
    in PHP

    How to make an HTML form more dynamic ?

    Hi,

    i have an HTML form. i want to make it dynamic i.e. when a visitor click on the link "Insert one more item", it will automatically adds one table row and gives one "text box" and one "select box" in it. i have to display values in select box from MySQL table without reloading the page.

    Can anyone plz help me ?

    Sunbin
    See more | Go to post

  • sunbin
    started a topic Milliseconds to HH:MM:SS ??
    in PHP

    Milliseconds to HH:MM:SS ??

    hi,

    How can i get the FLV file or any type of video file's duration in HH:MM:SS or HH:MM:SS:FF format from milliosecond ? I already got duration in millisecond.

    PHP script needed ... Plz help me !

    Sunbin
    See more | Go to post
No activity results to display
Show More
Working...