- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hi I am working on a payroll project and I am coding with php,html,js and mysql on xampp server. I have a salary sheet code which needs to be printed in pdf format for each employee with their names as the pdf filename. on running the php page the js … |
|
Re:
product_edit.php [CODE] <?php // DATA BARU //if ($_REQUEST[mode]=='edit') //{extract ($_REQUEST); //do something //echo $_REQUEST['id']; //will give us the valid id from the previous page. //} $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $harga = isset($_POST['harga']) ? $_POST['harga'] : ''; $gambar = isset($_POST['gambar']) ? … |
|
Re:
Hi all! I am trying to include two functions in an onchange when the user selects a new value from a select list: It is a quite big form form - There are one select list, when changed - TWO other fields in the form needs to change accordingly: I … |
|
[CODE]<?php /* +-----------------+------------------------------------------------------------+ | Class | setup | | Author | Brian Onang'o | | Version | 1.0 | | Last Modified | 10:16 AM 10/2/2010 GMT+3 | +-----------------+------------------------------------------------------------+ | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU … |
|
I need some help with inheritance in php. The code below does not produce any output. [CODE] Class Father{ var $car; Function inherited(){ print $this->car; } } Class Son Extends Father{ Function __Construct(){ $this->car='Benz';//I'm assuming here that car is still a property of father. } } $obj= new Father; $obj1= … |
|
Working with some OOP, I had an error that I have now traced to inistantiation of a class when the file in which the class is contained is included in any other file. Is this the default/normal behaviour of php, and how do I get myself out of this? I … |
|
This Christmas day, I am plagued by this negative nibble mystery. I have some bytes in a byte array that I want to split into nibbles [CODE] x = bytes(n) x = x << 28'cause the left 4 bits to overflow so we remain with only the right 4 bits … |
|
I have been searching for a single line of code all evening, and I think it's only prudent that I seek help. What line of code does the opposite if this? [CODE]WebBrowser1.Document.GetElementById("username").SetAttribute("Value", "username")[/CODE] I want to read some data from a php form and assign it to a string. |
|
[CODE]'<form action="" method="post"> '<fieldset> ' <ul> ' <li> ' <input type="text" name="username" id="user"/> ' </li> ' <li> ' <input type="password" name="pass" id="pass"/> ' </li> ' <li> ' <input type="submit" name="submit" value="submit"/> ' </li> ' </ul> '</fieldset> '</form>[/CODE] Above is a php form that has refused to be submitted by my … |
|
I have a file(File1) in the root directory(Root). There is also a directory(Dir) in the root directory which contains File2. File2.php [CODE]<?php include'/*I need to include file1 here*/' // ?>[/CODE] How do I include file1 in file2? |
|
I have a personalised webbrowser in VB 2005. It fills values into a form and submits the form. The first page is "login.php", the next page is "home.php" [CODE] SendKeys.SendWait("{TAB}") SendKeys.SendWait("{TAB}") SendKeys.SendWait("username") SendKeys.SendWait("{TAB}") SendKeys.SendWait("password") SendKeys.SendWait("{Enter}")[/CODE] I want it to do something else based on the url after the form is … |
|
I am loading a page to change passwords within an iframe. Outside the iframe it does work well, but when I change the password from within the iframe it returns a blank page. How can I rectify the problem? [CODE]//iframe <div class="tabber"> <div class="tabbertab"> <h2>Eguard</h2> <iframe src="eguard.php" width="100%" height="400"> </iframe>[/CODE] |
|
I am using the code below to insert time into a table, and this is the output it's giving me: 0000-00-00 [CODE]//table start DATETIME, //code to insert date into db $_POST['start']=date("Y-m-d H:i:s"); $insert = "INSERT INTO eguardIPs (Field1,Field2,Field3,start) VALUES ('".$_POST['Field1']."', '".$_POST['Field2']."', '".$_POST['Field3']."', '".$_POST['start']."')"; $add_start = mysql_query($insert);[/CODE] |
|
My file below checks if the user is ! logged in, and redirects to login page, or does nothing if user is logged in. [CODE]<?php if(isset($_COOKIE['SID'])) { $sid= $_COOKIE['SID']; $uid = $_COOKIE['User']; $lastip = $_COOKIE['Cname']; $_POST['SID']=$sid; $check = mysql_query("SELECT * FROM users WHERE SID = '".$_POST['SID']."'")or die(mysql_error()); while($info = mysql_fetch_array( … |
|
Re:
Pretty new at php and working on my class project. I get this error code on my action page for my log in page plus, it does not redirect when the result is wrong. I still get into the members' area. Code below. Thanks "mysql_num_rows(): supplied argument is not a … |
|
Re:
Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already … |