52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vishalonne

Hi I am trying to validate a form with different type of message for different error, but you can see [Click Here](http://cbsecsnip.in/csnip/form.php) the problem. Please guide me in solving this problem... Partial Code of form.php- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> …

Web Development html-css javascript
Member Avatar for Taywin
0
239
Member Avatar for shehnaz1991

hi i have a form which has 5 textboxes i want to add the values of all this 5 text boxes and place the result in total text box automatically how do i do this pls giv me some code

Web Development javascript
Member Avatar for Taywin
0
100
Member Avatar for Helianthus

Hi all, I have a new website that has a portfolio page. Currently, the code is such: <input type="image" src="_images/01.png" id="01" alt="" onclick="document.getElementById('outputDiv').innerHTML = '<section class=gallery><img src=_images/img01.jpg>' + '<p>Image name - by Photographer</p></section>';" /> This seems extremely cumbersome and is impractical for a site that could have many images on …

Web Development javascript
Member Avatar for Taywin
0
491
Member Avatar for devianleong

Hi, As I know the barcode scanner is just like a keyboard. I want the barcode scanner scan the user ID before it enter to the system. May I know how to hide the textbox field but still able to handle the input from barcode scanner?

Web Development php
Member Avatar for pritaeas
0
218
Member Avatar for gurusubramaniam
Member Avatar for ssembusi.david

i need some one to help me with the php codes to extract user data/informatio and then edit /update the information. using php and mysql.

Web Development php
Member Avatar for gabrielcastillo
0
6K
Member Avatar for Tko_1

hello again, okay so what im tring to do is have text field that when you input text and submit , it creates new file with text value as the name. as this shows this inputs the text into the file and randomly generates a # for the name of …

Web Development file-system php
Member Avatar for Tko_1
0
168
Member Avatar for sankster

$connection = mysql_connect($db_host, $db_user, $db_password) or die("error with connection"); mysql_select_db($db_name, $connection); $file=fopen("daily_user_summary.txt","r"); while (!feof($file_handle) ) { $line_of_text = fgets($file); $parts = explode(' ', $line_of_text); print $parts[0]. $parts[1]. $parts[2] . $parts[3]. "<BR>"; $query = ("SELECT name, newcredit, sum(total), team FROM tb1 WHERE NAME = '$parts[0]' and TEAM = '$parts[3]'"); $row = …

Web Development file-system mysql php
Member Avatar for sankster
0
964
Member Avatar for mzeewashooo

i want to display data from my mysql database using asp.net and i am using datagrid. i have set up the configuaration well, but when i load the page it doesnot show the data. pleaase help.

Web Development asp.net
Member Avatar for nakor77
0
99
Member Avatar for crazydevelopervish

I am working on an online shopping project....... I want to retrive data from database using checkbox...... For Example.... i have an mobbile form..... having all mobile records and have some filters such as search by brand, search by range etc.... let me take example of search by brand ...... …

Web Development asp.net open-source
Member Avatar for crazydevelopervish
0
128
Member Avatar for pocix

in index.php i have 3 urls <li><a href="categories.php">Categories</a></li> <li><a href="Register.php">Register</a></li> <li><a href="login.php">Login</a></li> how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"? when i click logout, the control panel & logout will change back to register & login

Web Development php
Member Avatar for pocix
0
344
Member Avatar for Djmann1013

Hi I am having trouble with this code: <?php //init.inc.php file session_start(); mysql_connect('mysql.host.com', 'username', 'password'); mysql_select_db('DB name'); include('include'); // Get users from table function fetch_users() { $result = mysql_query('SELECT 'user_id' AS 'id', 'user_username' AS 'username' FROM profile'); // Error on this line: Parse error: syntax error, unexpected T_STRING on line …

Web Development php
Member Avatar for phorce
0
90
Member Avatar for Helianthus
Member Avatar for rajaravi

Javascript code to reload modal window for 5 seconds

Web Development javascript
Member Avatar for rotten69
0
79
Member Avatar for lianpiau

I have a gridview contain 3 record, when I use OleDbDataReader to verify the record is match with data in other Table in access. My problem is if the record is no match, I will end process and do not perform insert. But when 1st record is match and 2nd …

Web Development asp.net
Member Avatar for hericles
0
130
Member Avatar for writerervin

Hi there. I'm looking to create a textbased browser game based on my old favorite anime. I figured out the basic structure of the data, but i've got one problem. is there a way to set the data up where a single user can have several of one item, each …

Web Development data-structure gaming php
Member Avatar for 8g2h8bt9
0
222
Member Avatar for shhh

Fatal error: Class 'XSLTProcessor' not found in C:\xampp\htdocs\easybasket\index.php on line 275 ` <?php /*########################################################################### Easybasket RESTful API Nigel Alderton 21st May 2011 www.easybasket.co.uk ############################################################################# This file exposes a RESTful HTTP interface to the client. It supports the following functionality; HTTP Method: GET Example Response ================= =============== ================================================================== / The Welcome …

Member Avatar for blocblue
0
238
Member Avatar for rpv_sen

Hi Friends **Example:** URL: http://localhost/sitename/page=name i want to print **name** in my page. like You Are Here: Home » **name** Please can any one help me.

Web Development asp.net http-protocol
Member Avatar for rotten69
0
245
Member Avatar for viktor.jiracek.5

Hello all, I am currently trying to insert a 0 value into a single field. The value is originally set to 1 and I would like to set it to its default value of 0. How would I go about doing that? The code I have works for other things, …

Web Development php
Member Avatar for diafol
0
129
Member Avatar for Danny159

Hey guys, I am having some trouble with json_decode... I used json_encode to encode a string that is the following: {"id":"121","firm":"DSD","address":"Test","address2":"Test","city":"Test","region":"Test","postcode":"Test","countryid":"13","firmtype":"Marketing","phone":"01545454587","fax":"","email":"dan@test.com","url":"http://www.test.com","mainuser":"Dan","contacts":"dan@test.com","info":"","numstaff":"15","numoffices":"1","disc":"","cat":"{"35":"1"}"} And I am using this php code to try and get it back into an array... however its just not working... the print_r(); doesnt echo anything out at all... …

Web Development json php
Member Avatar for Danny159
0
198
Member Avatar for ska_defender

Hello I want to have 4 files index.php go1.php go2.php admin.php in admin.php I want a switch command to switch between go1.php and go2.php for example in admin.php there must be two buttons go1 and go2 when I click on go1 index.php will behave as go1.php and when I click …

Web Development php
Member Avatar for ska_defender
0
224
Member Avatar for anita.kcx

In-spite of going through all the resources about rewriting URL, I am not able to successfully apply the same to my site. The URl is www.mysite.com/Client/?clientname=name I want it to be www.mysite.com/Client/name Client is another directory inside the root directory. Currently I have RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} Client/ [NC] …

Web Development php
Member Avatar for blocblue
0
126
Member Avatar for viktor.jiracek.5

Hello all, I am having problems with this code. Whenever I attempt to test the login system with a valid username and password, it says this: You have successfully logged in! Warning: Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php:1) in /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php on line 213 …

Web Development php session
Member Avatar for puneet bassi
0
273
Member Avatar for carol.cable.37

<?php $first = $_POST['first']; $last = $_POST['last']; $email = $_POST['email']; $phone = $_POST['phone']; $Submit = $_POST['Submit']; $first = strtolower($first); $last = strtolower($last); $first=ucfirst($first); $last=ucfirst($last); $general = " <br> Please try again ! "; $no_first = " your first name, please... "; $no_last = " your last name, please..... "; $no_phone …

Web Development html-css php
Member Avatar for blocblue
0
317
Member Avatar for aruti

Hello, I Need a TCP / IP Port Listener on my centos VPS Hosting to receive gps tracker signals on ports and store in mysql db. For further processing of received stored data, we are working on a php mysql application, but to listen to port signals, which programming language …

Web Development php
Member Avatar for sharath.mohan.12
0
793
Member Avatar for ecinevenice

hey does anyone here knows how to change excel page orientation to portrait? i get landscape as default <?php header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=transactions.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?>

Member Avatar for blocblue
0
181
Member Avatar for natehome

im working on a single player game in java and want to add a high scores table. what im thinking is when a player finishes a session my script will contact my server like this "mywebsite.com/sethighscore.php?secretkey=23234234&user=bob&itemscollected=45&timeplayed=1hour" <-- this would add a new user to database i have very little knowledge …

Web Development gaming php session
Member Avatar for veedeoo
0
182
Member Avatar for cali_dotcom

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking …

Web Development caching php session
Member Avatar for pritaeas
0
299
Member Avatar for joshmac

I want to convert my MVC framework to conform to the PSR-0 standards, but I am having a devil of a time trying to wrap my head around namespaces and how it works. I am using the suggested [SplClassLoader](https://gist.github.com/221634) class. Below is my file structure, and what I am trying …

Web Development github php
Member Avatar for pritaeas
0
211
Member Avatar for zenp

Hi I am trying to run this code for long but failed.Can anyone help me? 1. <?php 2. $button_text=$_POST['button_text']; 3. $color=$_POST['color']; 4. 5. if(empty($button_text)||empty($color)) 6. { 7. echo 'Could not create image - form not filled out correctly'; 8. exit; 9. } 10. $imgname="I:\xampp\htdocs\test\button\"; 11. $im=imagecreatefrompng('$imgname'.$color.'-button.png'); 12. $width_image=imagesx($im); 13. $height_image=imagesx($im); …

Web Development php
Member Avatar for pritaeas
0
211
Member Avatar for cjan

i ve created database called useradmin where the username and password is stored and created a login form too. everything is fine with code and the interface. when i tried to login with false username a message is displayed saying invalid. but when username corrrect and enter wrong password their …

Web Development javascript user-interface
Member Avatar for cjan
0
63
Member Avatar for LuxNova_1

Hello! I'm crazy new at PHP and I'm having problems with recieving all the info from the drop down portion of my form in the email submitted from php. The code for the HTML portion is: <label for="birthday">Birthday</label> <select name="Month" value="option"> <option value="January">January</option> <option value="February">February</option> </select> <select name="Day" value="option"> <option …

Web Development email php
Member Avatar for Zagga
0
257
Member Avatar for LastMitch

Hi, I'm trying to understand how **HMAC Verification** works in general (big picture). I want learn and understand how this equation works. Writing the script it a bit hard too. I know that **HMAC Verification** can prevent people from tampering with variables passed in the URL. Here is the formula …

Web Development ipad php
Member Avatar for LastMitch
0
111
Member Avatar for LastMitch

Hi, It's really late now, I am trying to figure out how to echo a message when I submit a form. Here is the code: <?php $msg = ""; if ($_POST['title'] != ""){ $title = $_POST['title']; $author = $_POST['author']; $author = stripslashes($author); if (!$title){ $msg = "Please Add Title"; } …

Web Development php
Member Avatar for LastMitch
0
218
Member Avatar for mehmatt

hello all, i have a website like forum not exactly forum but similar. honestly, i bought it cos i didnt have any idea for php. but something about linking is not as i want. for example: when i link some webpage it shows the link [Click Here](http://www.aaa.com) but i want …

Web Development perl php
Member Avatar for diafol
0
227
Member Avatar for vishalonne

Hello..! I just want to show an error message if user left text box blank. Here is my code on form.php, I really can find the problem... <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Your Valuable Suggestion</title> <link rel="stylesheet" type="text/css" href="view.css" media="all"> <script type="text/javascript" src="view.js"></script> <script type="text/javascript"> function notEmpty(elem, helperMsg){ alert("Out"); …

Web Development html-css javascript
Member Avatar for vishalonne
0
143
Member Avatar for shhh

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\dl\cart\includes\functions.php on line 37 There was an error with your order! function get_order_total(){ $cnt = array(); $products = array(); foreach($_POST as $key=>$value) { $key=(int)str_replace('_cnt','',$key); $products[]=$key; $cnt[$key]=$value; } $result = mysql_query("SELECT * FROM shop WHERE id IN(".join($products,',').")"); if(!mysql_num_rows($result)) { echo …

Web Development php
Member Avatar for Kieran Y5
0
157
Member Avatar for webmania_bt

Dear all, I am about to implement a user feedback page, by using the smtp server of my university. When I try to send a form, an error message is received as below: [COLOR="Red"]Could not connect to SMTP host: smtp-auth.bris.ac.uk, port: 587[/COLOR] I tested with telnet this smtp address, along …

Member Avatar for kinthada
0
880
Member Avatar for naru vaishnaw

this mail system is working in my local domain(S.K@ r.j.com).i want to send mail to S.K@ j.com. please help me to how to configure mail system . <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, …

Web Development html-css php
Member Avatar for pritaeas
0
157
Member Avatar for tigersaver

I would like to have a cron job for my web host to take all files in a given directory and create a sub directory with the folder name as the date of the files in the directory and move all files for that date to this sub folder. Sounds …

Web Development php
Member Avatar for pritaeas
0
299
Member Avatar for GlenRogers

Ok, I have a website built for a friend(simple/static). I want to add an amdin panel for him, so he can log in, put pictures into the gallery, change or update his stocklist and change or update his news section with special offer etc (he owns a reptile shop). I …

Web Development java-jsp java-netbeans
Member Avatar for stultuske
0
125
Member Avatar for weirdCreature7

Please help im a super beginner in php and I am doing this for my homework :) I just want to add a code that will Deny Access if password is wrong 3 times and the code for my alert box which is the Incorrect username and password is not …

Web Development php session
Member Avatar for devianleong
0
300
Member Avatar for owaithaka

hi am getting the following error when I try open my application. everything was ok and nothing has been installed. it just stopped working one day. Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /ssi/login/profile.asp, line …

Web Development asp microsoft open-source
Member Avatar for PrakashIdnani
0
2K
Member Avatar for rob.peters.1257

I just installed on my development box the WAMP EasyPHP 12.0 which includesPHP 5.4.4 VC9 | PHP 5.3.14 VC9 | PHP 5.2.17 Apache 2.4.2 VC9 + MySQL 5.5.25a + PhpMyAdmin 3.5.1 + Xdebug 2.2.0. The problem: Old PHP pages are parsed by Apache and load correctly. However, any new pages …

Web Development apache php
Member Avatar for blocblue
0
193
Member Avatar for weajane01

<?php //Database Connection $connection = mysql_connect("localhost", "root","mysql"); if(!$connection){ die("Database connection failed: ". mysql_error()); } //Select a database to use $db_select = mysql_select_db("school",$connection); if(!$db_select){ die("Database connection failed: ". mysql_error()); } //Database query $result = mysql_query("DELETE FROM tblstudent WHERE id=$id AND course='$course'", $connection); if(!$result){ die("Database connection failed: ". mysql_error()); } // Use …

Web Development php
Member Avatar for devianleong
0
128
Member Avatar for vizz

I want to add clip animation on mouse over to list using jquery my menu structure is, <ul id="menu"> <li><a class="" href="about.php">About Us</a></li> <li><a class="" href="services.php">Services</a></li> <li><a class="" href="works.php">Works</a></li> <li><a class="" href="clients.php">Clients</a></li> <li><a class="" href="contact.php">Contact Us</a></li> </ul> I want to create like [this](http://jsfiddle.net/bazmegakapa/Hftpc/15/)

Web Development javascript
0
259
Member Avatar for ska_defender

The following code generates a new php file playlist.php which contains the code as in $start $result variable $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start="<asx version='3.0'>\n<title>Example ASX playlist</title>"; $Fnm = "./playlist.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file …

Web Development file-system php
Member Avatar for ska_defender
0
244
Member Avatar for rayidi

Dear All, I'm developing a Bulk SMS application. I want to send Shedule sms using php. I'm not aware of sheduled Or timing interval things in php. Please help me.

Web Development php
Member Avatar for blocblue
0
115
Member Avatar for rkumaram

I want to create quick view for a shopping cart, Problem 1: When I Place my mouse over any of the boxes, quickview appears on all the box, how can I display it only in parent node. Problem 2: When I place my mouse on quickview link, it keeps on …

Web Development html-css javascript-jquery php
Member Avatar for rkumaram
0
396
Member Avatar for Leslie Joy

well hello guys want to ask for your help in improving this code. Please help me. First things first I have a database name called quotation and it has 4 fields namely Id, Date, Product and Price. Well I want to get the name of the product in the drop …

Web Development php
Member Avatar for Leslie Joy
0
120

The End.