17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for YingKang

I am writing a PHP program with sticky form. I want to use Text area for the "comments" part, but I couldn't make it work. Can anyone help? thanks. [code] <html> <head> <title>guestbook</title> <style type="text/css"> .error {color: #FF0000;} </style> </head> <body> <?php extract($_REQUEST); $errors = array(); if(isset($_REQUEST['submit'])) { validate_input(); if(count($errors) …

Web Development html-css php
Member Avatar for YingKang
0
490
Member Avatar for jasystweb

I am creating controls which are added to the page at run time. As these controls are added I separate them into a UL/LI list by injecting literals assigned as (<ul>, </ul>,<li>,</li>). The page in question uses a master page template. The ul/li function is called in the page_load event …

Web Development asp.net html-css javascript
Member Avatar for jasystweb
0
254
Member Avatar for tryphy

I have some doubts in form submission. The function that i need is adding a prompt dialog box to confirm befor the user submits the form. Eg: The user is entering some data in the form and he clicks submit..a dialog box appears and says " Are you sure you …

Web Development php
Member Avatar for tryphy
0
1K
Member Avatar for tryphy

Hi people, My issue is more of a MySQL issue than php. I am trying to store a 3digit integer value with a leading Zeros in front such as 001 i have a company table , which auto increments the id as 001, 002, 003...and so on... In the company …

Web Development php
Member Avatar for maks91
0
143
Member Avatar for dannyfang

HI, I wish to get the values from the drop down menu selected by a user from the HTML page and pass this value into my servlet program for processing. In my servlet program, I've used the getParameter() function to obtain the value from the drop down menu selected. <SELECT …

Web Development java-jsp javascript
Member Avatar for peter_budo
-1
9K
Member Avatar for heels

Hi, I am currently using xampp with all the preloaded add ons, such as tomcat, mysql and apache. When i try to connect to the database through my computer with windows xp, it works perfectly fine. But when i changed it to another OS, windows vista. It keeps giving me …

Web Development apache java-jsp windows-vista
Member Avatar for peter_budo
0
98
Member Avatar for xylude

I am making a little forum and while trying to add the quote post functionality have come across a problem that has me stumped. Here is my js: [CODE] function addQuote(text) { var tArea = document.getElementById('forumReply_message'); tArea.value = text; } [/CODE] Here is sample HTML (one that doesn't work): [CODE] …

Web Development javascript
Member Avatar for xylude
0
83
Member Avatar for smilingeyes76

Good morning, I've searched the web for a week to find a solution to a problem, but I can't figure it out, so now I'll try to post directly what the problem is and hope that someone could explain me how to go ahead. I'm new to Asp.Net, and some …

Member Avatar for smilingeyes76
0
145
Member Avatar for muralibobby2015

hai... i want to dispaly table like this. actually i am fetching data from database. i am displaying data in tables. but i want to display like column wise after row wise. [CODE] A F K B G L C H M D I N E J [/CODE] like this. …

Web Development display php
Member Avatar for urtrivedi
0
112
Member Avatar for network18

Hi, The dynamically created rows are appended at the end of the table i.e. after the last row of the table (found by table.rows.length) and those individual <tr> contains 8 more <td>s carrying some texts and their respective text fields. Now we have one such default <tr> , which also …

Web Development first-post php
Member Avatar for Banderson
-1
191
Member Avatar for Anarionist

im having trouble understanding why this won't work. I'm extremely new to php (my primary language is c++) [CODE]<html> <body> <?php if(strpos($_GET['codev'], 'ddd') !==FALSE){ if(strlen($_GET['codev'] ==3) { echo "<p>Welcome</p>"; } ] ?> </body> </html>[/CODE]

Web Development php
Member Avatar for Anarionist
0
105
Member Avatar for baseballfury

Hello, I'm returning results from a database but they are showing as yyyy/mm/dd I would like them to display as dd/mm/yyyy is there a simple way to format $newrow5['StartDate'] to do this. while ($newrow5 = mysql_fetch_array($result5)) { echo "Starts on the: {$newrow5['StartDate']}"; } thanks in advance, Tom.

Web Development php
Member Avatar for baseballfury
0
2K
Member Avatar for Motorider

I have searched for a solution to this problem on daniweb and google to no avail. You folks have been so kind as to help me before. This portfolio piece, slash website for my father incorporates a MySQL PHP search form in the left div, and the search results in …

Web Development php
Member Avatar for EvolutionFallen
0
144
Member Avatar for mrcniceguy

HI everyone!!i have this got this function, and i dont know what is going wrong here. in the table, the field for date i saved as timestamp, meaning time is automatically inserted when the record inters. [code=php] function time_stamp($session_time) { $time_difference = time() - $session_time ; $seconds = $time_difference ; …

Web Development php
Member Avatar for mrcniceguy
0
134
Member Avatar for javedkhan

Hello everyone, How can I find out what scripting language is used for a website? For example If I am looking at BBC.co.uk how do I know the scripting language like PHP, JSP, ASP etc. Please reply. its urgent ,.........thanks

Web Development xml
Member Avatar for almostbob
0
177
Member Avatar for codeblock

Hello everybody, I've posted this question before but i got no help, may be i wasn't clear enough or it can't be solved but i really need someones help. The problem is my if else statement. My if else conditions will block the first two int values but then allow …

Web Development mysql php
Member Avatar for codeblock
0
189
Member Avatar for dan4domination

Hello all, Just wondering if I could pick some brains, I'm currently learning PHP and have been messing around with a fun project, currently developing a simple login / register script. The error that I keep getting is - [b]Parse error: syntax error, unexpected T_ELSE in /home/danhumph/public_html/smithy/login.php on line 27[/b] …

Web Development php
Member Avatar for Ezzaral
0
835
Member Avatar for SANJISH

Hi, I am using the trace facility to find the viewstate size of controls on postback. I have added a label , a textbox and a submit button to the webform. However after posting my page and viewing the trace.axd page I find that the viewstate size bytes and controlstate …

Web Development asp.net
Member Avatar for SANJISH
0
137
Member Avatar for Heinz Stapff

Running Login Validation that is causing problems. Client side 'onchange' of input id=customer email is not writting to <p> for each 'if' statement. Any help greatly appreciated. [CODE] var dbemailstr = ['heinzstapff@hotmail.com']; // emulate database email search var newemailstr = ['gloriamarks@prodigy.net']; // emulate add to databas email addresses var email …

Web Development javascript
Member Avatar for Heinz Stapff
0
117
Member Avatar for Pooja J.

Hello,i m newer to the php. my problem is... i have one form with textfield and multiple selection listbox. i select multiple values form listbox, implode it with comma and put all values in single database field. its working. But, i cant retrieve them with explode function . i want …

Web Development php
Member Avatar for urtrivedi
0
112
Member Avatar for ryan311

i have index.php [CODE] <form action="login.php" method="post"> <table width="249"> <tr> <td> <span class="style3">Username:</span> </td> <td> <input name="username" type="text" /> </td> </tr> <tr> <td> <span class="style3">Password: </span></td> <td> <input name="password" type="password" /> </td> </tr> <tr> <td> </td> <td> <input name="Login" type="submit" value="Login" /> </td> </tr> <tr> <td colspan="2"> <div align="center" class="style3">Not …

Web Development php
Member Avatar for ryan311
0
97
Member Avatar for Pooja J.

Hello, I have one table with user information contain unique ID and password. When user enters the ID and password in php login form, my php code should check that ID is already present or not. If it is present, my php code should check that the password is same …

Web Development php
Member Avatar for Pooja J.
0
191
Member Avatar for muralibobby2015

hello... i want to move specific location with in a page. for that i used like this [CODE]<a href="knowledge.php#news">HHH</a>[/CODE] then it points the news table. now i have query string is there. how to give like above. now i want to point a div which is in comment.php. where can …

Web Development php
Member Avatar for pushpakalpana
0
108
Member Avatar for diafol

Hi folks, I'm looking for a function, similar to str_replace that replaces just the first occurance of a specified string. I have found such a function: [url]http://www.help2go.com/Tutorials/Programming/PHP_:_How_to_replace_only_the_first_occurrence_in_a_string_with_str_replace.html[/url] However, this does not take into consideration of 'search from an initial position'. My interest is with regard to replacing strings within a …

Web Development php phpbb regex
Member Avatar for diafol
0
176
Member Avatar for tryingtofindout

[CODE]<option>location1</option> <option>location2</option> <option>location3</option> <option>engineer for location1</option> <option>engineer for location2</option> <option>engineer for location3</option>[/CODE] wen i choose a location the corresponding service engineer for that location should be added to d database in d user form ther will be no option for engineer for that location, by selecting the location, it should …

Web Development php printer
Member Avatar for tryingtofindout
0
101
Member Avatar for arelius

Hey guys, When I bind my data to the GridView, it populates the GridView with the correct number of rows from the database, but the rows are empty. Do you know how I can get the data to appear in these rows? Please look at the attached picture to get …

Web Development asp.net dataset
Member Avatar for kvprajapati
0
143
Member Avatar for arelius

Hey Guys, I am new to ASP.Net and am having some difficulties with the properties window. I am trying to link a .css file to a master page through the Properties window. According to the book I am using to teach myself, it says that "at the top of the …

Web Development asp.net
Member Avatar for arelius
0
74
Member Avatar for jasystweb

I've been working on a class which when called pulls images (the actual byte) from one table and then the corresponding product information from another table in a MYSQL database. I then create a dynamic set of controls and add them to the layout. I wanted to place all the …

Web Development asp asp.net
0
79
Member Avatar for JSHGROUP

Hi there I'm having a problem with a script. [code] <!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-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Thank You for your order!</title> <style type="text/css"> .style1 { text-align: center; } .style2 { font-size: x-large; font-family: Arial, Helvetica, sans-serif; …

Web Development email html-css php
Member Avatar for misterrmac
0
136
Member Avatar for giahmed

Hy all, I am sure its very simple thing and I am not just getting it, I am trying to send textbox value from one page to another and its keep giving me an error, basicaly its not finding the class I created in previous page. My web pages are …

Web Development asp.net assembly
Member Avatar for giahmed
0
106
Member Avatar for rcook

I have a simple web application with a login page. I am now adding authentication to code that already checks username and password in a database; I use Forms Authentication to write a cookie with an authentication ticket (if that's the right term) to enable a user to access pages …

Member Avatar for rcook
0
286
Member Avatar for jellybeannn

I'm working on the book "Beginning Aspnet E-Commerce with C#", but I have encountered a problem. The tutorial includes a Pager Control, this works fine for all of the products it is just when the a department is selected the pager does not work, only after a Category is selected …

Web Development asp.net promotion
0
64
Member Avatar for ronaldpaul

In my project i wanna use the last_insert_id() to be stored in a session variable and after that i wanna use that session variable i.e., the value of last_insert_id() in another page. How can i carry the last_insert_id() to some other page using session or storing it in a session …

Web Development php session
Member Avatar for CFROG
0
161
Member Avatar for anuj_sharma

Hey Guys, Should i use hidden textboxes or session variables to pass values between various jsp pages??

Web Development java-jsp session
Member Avatar for jwenting
0
88
Member Avatar for jeeter19

Hi, I'm trying to just grab a small column of data from a Database and return it. This is a function called getAccessLevel(), it returns the Access level which is an integer. There is a table called users in the DB and the column access holds either 0, 1, or …

Web Development php
Member Avatar for jeeter19
0
148
Member Avatar for solarb

it's a update form and i want when pressing edit, the input text to be changed with the text in mysql database but it doesn't work. is there some kind of error which i don't see? or is there alternative way to do this form? [B]update.php[/B] [code]<?php include("contentdb.php"); if(isset($_POST['submit'])){ $id= …

Web Development html-css php
Member Avatar for Koekoeksklok
0
160
Member Avatar for ronaldpaul

Friends, pleas tell me a simple method to upload and then view the upload image using php and mysql. The image can be stored in a separate folder or in database itself. But anyhow tell me the simplest way to do this. It'll be very good if u post the …

Web Development file-system image php
Member Avatar for CFROG
0
97
Member Avatar for dylank

Hey all you guys at DaniWeb! I have tried my hand at what I guess is Ajax, with a PHP script to execute it. The page itself renders and the form works, but the login script is not working. I'm not sure what is wrong, although I'm sure I messed …

Web Development html-css javascript php
Member Avatar for NettSite
0
160
Member Avatar for emhmk1

Hi Guys, I'm having trouble with the form reset button in my php script. The form submits to it's self in the same page. The php script has error handling i.e [CODE]if(empty($name)){ $error[] = " Enter Your Name";}[/CODE] The Problem i have is when the form is submitted it checks …

Web Development php
Member Avatar for emhmk1
0
85
Member Avatar for dan_ord

Hi all, I posted up a thread a few weeks ago, regarding automatically updating a drop down list from a database using ajax. Someone posted a reply suggesting i use the w3schools website for some help and i managed to put together something that worked for me. However, i'm now …

Web Development php
Member Avatar for dan_ord
0
2K
Member Avatar for ayesha789

Dears I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows. Now I want to make a hyperlink on count so it can show all details of query in new <div>. How I can make echo"$num_rows \n"; dynamic link. [CODE]$result = mysql_query("SELECT * …

Web Development php
Member Avatar for praveen_dusari
0
75
Member Avatar for freshfitz

How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status …

Web Development html-css mysql php
Member Avatar for damnpoet
0
119
Member Avatar for dayt3

I'm working on comp. science 101 work and I have 4 methods left to do which I can't figure out and I've been trying for hours. Very elementary but difficult for smoeone new to computers and Ruby. For example: I need to write a method called 'diff' which accepts 2 …

Web Development ruby
Member Avatar for dayt3
0
127
Member Avatar for azegurb

hi everyone i want to build pagination with PHP but i cannot for ex i have 100 number of news and i like my page show only 10 news per page so let it displays 10 page and below let it is written page1, page2, page3, and whenever i want …

Web Development php
Member Avatar for damnpoet
0
84
Member Avatar for richardtreier

i got a problem... i want to find a way to check if something is NOT at the beginning of a new line... how should i do that?

Web Development javascript
Member Avatar for pritaeas
0
53
Member Avatar for jespin

Hi all, I have an issue with a PHP and MySQL deletion script where I am basically trying to delete all records for meetings which have expired. For this, on input, I have a date input calendar which inputs the date in the format 2010-01-18 to the database with the …

Web Development mysql php
Member Avatar for jespin
0
191
Member Avatar for ryan311

how to clear all input fields after submitting data? [CODE]<form method="post" id="registerForm" action="register.php" > <table align="center" cellpadding="2" cellspacing="0"> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="First_name">First name:</LABEL></strong></div></td> <td><div align="left" class="string"> <input name="First_name" type="text" class="input" id="First_name" value="" size="32" /></div> </td> </tr> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="Last_name">Last name:</LABEL></strong></div></td> <td><div align="left"> <input name="Last_name" class="input" type="text" id="Last_name" …

Web Development javascript
Member Avatar for Troy III
0
159
Member Avatar for tulipputih

Hello, How can we save a page to another drives/devices I did use a form in my page- result.php- In result.php I put one button for save As. all of the elements are disabled in this page. and I hope that the details of that page will be copied to …

Web Development php
Member Avatar for diafol
0
154
Member Avatar for solarb

hi all! i'm new with php and i have problem. I have a submit form in which every user places code.when they submit it in database its displayed normally there, but when i try to view the data in php there are missing elements , as b<<c or <iostream> etc. …

Web Development mysql php
Member Avatar for solarb
0
154
Member Avatar for itisnot_me

ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i …

Web Development php
Member Avatar for FlashCreations
0
101

The End.