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 + "&";...
User Profile
Collapse
-
sunbin started a topic problems when submitting 'Checkboxes with the same name' with Ajax Post and PHPin Javascriptproblems 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' ));")... -
ThanX ronverdonk for ur ideas !
I expect the same again and again !
SunbinLeave a comment:
-
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)
{...Leave a comment:
-
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 ?>
SunbinLast edited by Dormilich; Oct 8 '10, 05:28 AM.Leave a comment:
-
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 -
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
No activity results to display
Show More
Leave a comment: