473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to change javascript to php script

i would like to change some javascript to php script.

there's d javascript

function addRowToTable()
{
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);

var cellLeft = row.insertCell(0);
var textNode = document.createTextNode(iteration);
cellLeft.appendChild(textNode);

var cellRight = row.insertCell(1);
var el = document.createElement('input');
el.type = 'text';
el.name = 'txtRow' + iteration;
el.id = 'txtRow' + iteration;
el.size = 40;
el.onkeypress = keyPressTest;
cellRight.appendChild(el);

var cellRightSel = row.insertCell(2);
var sel = document.createElement('input');
sel.type = 'text';
sel.name = 'txtRow' + iteration;
sel.id = 'txtRow' + iteration;
sel.size = 20;
sel.onkeypress = keyPressTest;
cellRightSel.appendChild(sel);
}


help me plezz... :D
Nov 7 '06 #1
2 1521
vssp
268 100+
<?php
function addRowToTable()
{

$tdl=$_POST['tblsample');


}

?>


Thsi way using to whole function to change php

vssp
Nov 7 '06 #2
thanx...i hv to work harder n harder 4 dis lah...
Nov 14 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: noah.coffey | last post by:
Hello, I'm wanting to do something and I'm not sure if it's possible (I'd sure like it to be). I'm using a neat service called FeedSweep to aggregate a large list of XML/RSS/ATOM feeds. The...
2
by: Raigo | last post by:
There is a bug with IE6 handling Javascript onMouseOver and onMouseOut events. Can it be replaced somehow with CSS? For example when I want to change images when user moves mouse to certain HTML...
1
by: faxme | last post by:
Hi, I would like to know if it is possible to change code on the fly on a python interpreter. I want to have a python script running a multithread server and be able to connect to this python...
6
by: nate | last post by:
Hello, Does anyone know where I can find an ASP server side script written in JavaScript to parse text fields from a form method='POST' using enctype='multipart/form-data'? I'd also like it to...
1
by: sarwarmohiuddin | last post by:
Hello MAtes, I am having this problem of adding a script element in a rich text editor box. i am doing this. The problem is that it won't add the script tag alltogather, or give an error "Unknown...
2
by: swetha06 | last post by:
Hi all, Executed the following javascript code through localhost...but the script is not working at all.Is the syntax of indexOf correct? The code does the following..checks if a valid...
4
by: TriAdmin | last post by:
I am trying to debug a client's Javascript inside a php page. It runs fine in Firefox but throws an error is IE, "can not open site,... operation aborted." The code starts like this: HTML...
0
by: Abdul Gbadamosi | last post by:
how can i pass an argument to a javascript script tag in html from a python file?
2
by: alex churchill | last post by:
I am using notepad++ and when i run the file it simply pastes the file in the browser how can i get it to actually run the script? <html> <head> <title>MyScript</title> <Script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.