Jump to content

ssuresh07

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ssuresh07's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have creating a preview window using pop up, i'm able to get data from textboxes and comboboxes. But i have created dynamic textboxes as array in this form, i'm not able to get those boxes. How to send those data to pop window..? I posted the code below This is the code i used to transfer form data to a pop window function test() { a = window.open("", "", "width=800px, height=600px, resizable"); a.document.write('<html><body><font face="courier new"><table border=1>') a.document.write('<tr><td colspan=2>Invoice No : '+ document.add_invoice.txtInvoiceNo.value + '<br>'); a.document.write('Invoice Date : '+ document.add_invoice.txtInvoiceDate.value + '</td></tr>'); a.document.write('<tr><td width=50%>'+ document.add_invoice.txtAddress.value + '</td><td></td></tr>'); a.document.write('<tr><td>'+ document.add_invoice.txtSupplier.value + '</td><td></td></tr>'); a.document.write('</table></font></body></html>') } here is the code i used to create dynamic controls in my form. how to send these textbox value in the above code. var textbox2 = '<input type="text" name= txtDesc[] class="txtbox" style="width:425px" >'; var textbox3 = '<input type="text" name= txtCases[] class="txtbox1" onSubmit="return callMe();" >'; var textbox4 = '<input type="text" name= txtRate[] class="txtbox1" onSubmit="return callMe();" >'; var textbox5 = '<input type="text" name= txtCurrency[] class="txtbox1" >'; var textbox6 = '<input type="text" name= txtAmount[] class="txtbox1" onSubmit="return callMe();" >'; var tbl = document.getElementById(tbl); var rowIndex = document.getElementById(row).value; var newRow = tbl.insertRow(row_no); var newCell = newRow.insertCell(0); newCell.innerHTML = textbox; var newCell = newRow.insertCell(1); newCell.innerHTML = textbox2; var newCell = newRow.insertCell(2); newCell.innerHTML = textbox3; var newCell = newRow.insertCell(3); newCell.innerHTML = textbox4; var newCell = newRow.insertCell(4); newCell.innerHTML = textbox5; var newCell = newRow.insertCell(5); newCell.innerHTML = textbox6;
  2. Hi, Is is possible to convert my php site to a html site. i have few pages which displays details. if it is converted, then it will have thousands of pages. this is required to do for SEO process. how to do.... thanks
  3. I'm creating a feedback form which sends mail to the user and website. how to send it.
  4. How to make a PHP site Search Engine Optimization. The site contains more than 600 pages.. Please suggest some ideas?
  5. Hi, I'm new to PHP, I have just started to develop an application. I want to use Classes to built a login page. I'm here posting my coding which is incomplete. Someone give idea of completing it with handling sessions and how to redirect to another page. and when pressing back button it should not goto login page again. <? class Login { public function __construct($username, $password) { require_once("Connection/db.php"); session_start(); $this->username = $username; $this->password = $password; $this->Validate(); } public function __destruct() { } protected function Validate() { $Query = "SELECT * FROM master_login WHERE username = ". $txtUserName .""; $Execute = mysql_query($Query) or die('Query failed1: ' . mysql_error()); $rs =mysql_fetch_row($Execute); if($rs[1] == $txtUserName && $rs[2] == $txtPassword) header('Location: index1.html'); } } $objLogin = new Login("Guest","guest"); ?> <html> <head> <title>Test</title> </head> <body> <form name = "frmlogin" method = "post" action="index1.html"> <table align="center"> <tr> <th><a href="index1.html">Login</a></th> </tr> <tr> <td><input type = "text" name = "txtUserName" /></td> </tr> <tr> <td><input type = "text" name = "txtPassword" /></td> </tr> <tr> <td> <input type = "submit" name = "submit" value = "Submit" /> <input type = "reset" name = "reset" value = "Reset" /> </td> </tr> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.