•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,578 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1964 | Replies: 3
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
hi,
i am using php, javascript, ajax in my Timesheet project.
I made a grid displaying details of Timesheet such as Date, Day, Starttime, Endtime etc.
i coded this grid using table, input tag and displayed it in php.
i have used input tag name as array and i want to retrieve that value in javascript.
example:
<?php
for($i=1;$i<=$days;$i++)
{
$display_string .= "<td><input type='text' name='date[$i]' value='$dat' > </td>";
$display_string .= "<td><input type='text' name='day[$i]' value='$day' > </td>";
$display_string .= "<td><input type='text' name='stime[$i]' > </td>";
$display_string .= "<td><input type='text' name='etime[$i]' > </td>";
}
echo $display_string;
?>
How to get the value of input tag array value in javascript?
If anybody knows it, pls help me.
Thanks,
Yasodha.
i am using php, javascript, ajax in my Timesheet project.
I made a grid displaying details of Timesheet such as Date, Day, Starttime, Endtime etc.
i coded this grid using table, input tag and displayed it in php.
i have used input tag name as array and i want to retrieve that value in javascript.
example:
<?php
for($i=1;$i<=$days;$i++)
{
$display_string .= "<td><input type='text' name='date[$i]' value='$dat' > </td>";
$display_string .= "<td><input type='text' name='day[$i]' value='$day' > </td>";
$display_string .= "<td><input type='text' name='stime[$i]' > </td>";
$display_string .= "<td><input type='text' name='etime[$i]' > </td>";
}
echo $display_string;
?>
How to get the value of input tag array value in javascript?
If anybody knows it, pls help me.
Thanks,
Yasodha.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Populating Multiple Text Fields Based On A Dynamic Drop-Down List Selection (PHP)
- Calling a javascript function from C# (C#)
- [Win32/C++] Listview question (C++)
- Javascript array from sql query (JSP)
- transfer double array from asp to javascript (ASP.NET)
- how to pass a array from asp to javascript (JavaScript / DHTML / AJAX)
- Help-overloading operators (C++)
Other Threads in the PHP Forum
- Previous Thread: Uploading progress
- Next Thread: Problem getting data back from MySQL DB


Linear Mode