17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gdp_87

Hi, Is there a way to set a default query string if query string is null? Something like: [CODE] if (Request.QueryString["ID"] == null) { //set default here } [/CODE] Many Thanks Grant

Web Development asp.net
Member Avatar for Ramesh S
0
239
Member Avatar for itslucky

Dear Friends, im receiving a XML file which contain a HTML code in the value of a node.. i have fetched the html code, but now i have to show that on my ASP .NET page. please tell me how can i do that... is it possible to assign that …

Web Development asp.net html-css xml
Member Avatar for itslucky
0
203
Member Avatar for f_atencia

<?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd country="USA"> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10.90</price> </cd> <cd country="UK"> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <price>9.90</price> </cd> <cd country="USA"> <title>Greatest Hits</title> <artist>Dolly Parton</artist> <price>12.90</price> </cd> </catalog> Hi, I'm sure it's very simple, but I'm new at ASP and XML. I just want to know how I …

Web Development asp xml
0
67
Member Avatar for jobojo

Good evening everyone. I have a php based site which was designed a few years ago. I have done very little with the site since I purchased it because I was not very familiar with PHP. Well I still am not very familiar with PHP, but I am more familiar …

Web Development php web-design
Member Avatar for JRM
0
168
Member Avatar for smush

Hi everybody, I just started learning PHP and was asked to write a BMI calculator. I did all that but now I'm stuck with an if ... elseif that doesn't seem to want to work. I'm sure it's just a syntax error but could somebody look over it and see …

Web Development php
Member Avatar for smush
0
105
Member Avatar for jnsnow

This is my first post to DaniWeb, and I've read the Member Rules, so I think this is the correct forum. I have created a page in PHP that collects seven items of data then displays them lower on the same page. The data columns are: name, alignment, origin, archetype, …

Web Development mysql php
Member Avatar for pritaeas
1
6K
Member Avatar for whiteyoh

Hi All, I have sent a GET request to a third party and it has responded with XML. I would like to know how to extract the information from that response and convert it into a standard php variable. [code] <GetGuidResult> <ErrorNumber>0</ErrorNumber> <ErrorMessage/> <Guid>40d505ba438049a68eafc9a95e7fefcf</Guid> </GetGuidResult> [/code]

Web Development php xml
Member Avatar for whiteyoh
0
87
Member Avatar for yara1

hi How do I write php code to check if checkbox is checked or not ? correct my red line please :) [code]<html> <head> </head> <body> <script language="JavaScript" type="text/javascript"> function add() { <?php extract($_POST); [COLOR="Red"]if(category[0].checked)[/COLOR] $query = "INSERT INTO mytable (cat) VALUES ('1') [COLOR="red"]if(category[1].checked)[/COLOR] $query = "INSERT INTO mytable (cat) …

Web Development javascript php
Member Avatar for ravibose
0
2K
Member Avatar for mrcniceguy

i`m using the jquery library in ma web....so i`m wondering which method of calling the library is more recomended. i mean to download the libary and call it directly from the server or to link to googleapis???? Any suggestions will be appreciated. <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> OR <script …

Member Avatar for mrcniceguy
0
87
Member Avatar for Pooja J.

Hello to all, Please tell me the error from the following code. When I choose a file from 'file' field, then it update the image, but when I dont choose a file. It doesn't keep the same image, i.e. the image get disappear. What is the problem in my 'If.....else …

Web Development file-system php
Member Avatar for Pooja J.
0
110
Member Avatar for ErlendHL

I have studied some AJAX, and tried to understand it. The AJAX works; i just want to write a right php document too. With the AJAX, I load the php file write.php. Here is what is in write.php: [CODE]<?php $NAME = 'data.txt'; $HANDLE = fopen($NAME, 'w') or die ('CANT OPEN …

Web Development javascript php
Member Avatar for danishanila
0
569
Member Avatar for andydeans

Hi, My MYSQL database has set columns for the data. The users have spreadsheets setup with their own columns which holds pretty much the same data on it. name, address etc. is the simpliest way to import it, to change the column headings on the spreadsheet for each user to …

Web Development php
Member Avatar for andydeans
0
95
Member Avatar for xxmp

i would like to encrypt some data and i do not know how? How i can make a secure log in to a web server? Thank you very much

Web Development encryption php web-server
Member Avatar for diafol
0
108
Member Avatar for cwarn23

Hi, I have some strings but I want to convert them to binary (1 way). Are there any functions other then the compression functions that will convert strings to binary? Thanks. cwarn23

Web Development encryption php
Member Avatar for cwarn23
0
70
Member Avatar for 6pandn21

Hello guys! I am trying to implmenent a jQuery library and it worked fine when I ran it out of server. When I tried to run from a XAMPP based web server at home; the images doesn't show and keeps giving this error: 'You don't have permission to access the …

Web Development apache client-server php
Member Avatar for 6pandn21
0
19K
Member Avatar for rouse

I am looking for a correct way to test a JavaScript regular expression for phone number and email address. This includes the RegExp string and the syntax. First the syntax: I am confused about using the quote mark (“) in defing the RegExp. Is it [code] var email_test = new …

Web Development javascript
Member Avatar for rouse
0
173
Member Avatar for ErlendHL

Hey! I am making a chat program. I have a function Chat(); [code] function Chat(){ var fullMessage = document.getElementById('name').innerHTML +' '+ document.getElementById('message').value+'\n'; fullMessage = fullMessage.replace(/\'/g,"'"); fullMessage = fullMessage.replace(/\\"/g,"&quot;"); fullMessage = fullMessage.replace(/\[/g,'*lsb?'); fullMessage = fullMessage.replace(/\]/g,'*rsb?'); sendRequest('http://3rlend.com/pjattappend.php','F=allMessages.txt&D='+'fullMessage','POST',true); document.getElementById('message').value=""; } [/code] sendRequest(url,params,method,Asynch); i an AJAX function. Now when I try to execute Chat();, …

Web Development javascript
Member Avatar for ErlendHL
0
1K
Member Avatar for piers

Now I am using php and mysql so not sure if this should be in the php section. If you can help I would be most greatful. I am trying to create a search page so that it shows data and one of the columns in the mysql database contains …

Web Development file-system php
Member Avatar for piers
0
111
Member Avatar for phpdev

Hi all! this is my first post in this site.. the following code works fine with ff but not with **ie 8** - i had given [B]'windowname' [/B]in the place of **'_blank'** for ff, but that did not allow ie to open the window, so replaced it with blank, now …

Web Development javascript
Member Avatar for Suresh Vanam
0
144
Member Avatar for rouse

I am writing a contact form using jQuery AJAX POST and PHP. The form works well and sends the email. What I want to know is how to get the return values for error and success on the same page where the contact form is rather than having the message …

Web Development javascript php
Member Avatar for rouse
0
115
Member Avatar for rainhider

[CODE] $result = mysql_query("SELECT * FROM Users") or die("could not select ".mysql_error()); if (!$result) { echo 'Could not run query: ' . mysql_error(); } $rows = mysql_num_rows($result) or die("no rows" . mysql_error()); if ($rows > 0) { $row = mysql_fetch_assoc($result); while ($row = mysql_fetch_assoc($result)) { print_r($row); }[/CODE] Every time I …

Web Development mysql php
Member Avatar for rainhider
0
122
Member Avatar for davidgoldsmith

syntax error, unexpected T_STRING in /home/earning1/public_html/wordpress/wp-content/themes/DavidGoldSmith_Theme/sidebar.php on line 40 Don't see the error???[code]<div id="cat_top"></div> <div id="sidebar"> <div class="rsidebar"> <div class="blog"> </div> <div id="photo" class="picture"> </div> <p> <?php wp_list_pages('title_li=<h2>David's Links</h2>' ); ?> <ul style="line-height:18px;"> <li ><div ><!-- SiteSearch Google --> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://davidgoldsmith.com/wordpress'>Home for David's Blog</a> </td> …

Web Development php wordpress
Member Avatar for Arsench
0
85
Member Avatar for ragnarok511

I am kind of new to php. However, I created a form in html and the form action is linked to a php which all on the localhost. When I run the html file enter in information and hit submit. A window pops up and asks me if I want …

Web Development apache ide php ubuntu web-browser
Member Avatar for ragnarok511
0
136
Member Avatar for Katsurou

Hi so I wanted to make a little quiz in php [CODE]if(isset($_POST['City'])) { echo "<strong>Answer nr1:<BR></strong>"; $cities= $_REQUEST["City"]; $odp = "Madrid" || "madrid"; //$odp = "Madrid" && "madrid"; //neither of OR/AND works here if($cities== $odp){ echo "Your answer is <Font Color=#009900>correct</font> <P>"; } elseif($cities== ""){ echo "Please fill in this …

Web Development php
Member Avatar for Katsurou
0
110
Member Avatar for Connavar

Hi guys and gals I am new to the forums and was referred here by some friends. I am creating a site for a Xerox partner, and I am trying to pull content (a certain div) through, from the Xerox site, to mine, without pulling through the entire site. I …

Web Development asp.net
Member Avatar for Connavar
0
116
Member Avatar for Pooja J.

Hi to all, Here is my code, I want upload file which are only images. All images with jpg, JPG, jpeg, JPEG, gif are uploaded successfully except with bmp file. Plz, help me to find out the prob. why my code is fail with bmp extension file. [code] //file-detail-complex.php <?php …

Web Development file-system php
Member Avatar for Pooja J.
0
816
Member Avatar for josephe

Ok, so I'm learning PHP (and quite enjoying myself so far). I'm making a web page that will have a list of text boxes for the user to type info in. The boxes will be created dynamically via JavaScript (later on in development), and the id/name of the box will …

Web Development php
Member Avatar for josephe
0
231
Member Avatar for jascook

Hi all, I've uploaded my asp.net site to my ISP. It works fine locally on VWDE 2005, in that I can create users, assign them to roles, and control role access to website folders etc. Obviously this is all with SQL 2005 Express on my PC. When I upload it …

0
87
Member Avatar for drewpark88

Hey Guys, I need to send an HTML email with the last 4 digits of the credit card. Everything else sends fine but must be an error in my code, probably didn't do it right can someone correct me please : ) [CODE]XXXX-XXXX-XXXX-".substr{$_REQUEST['cc_number'] , -4, 4}[/CODE] * Yeah I know, …

Web Development php
Member Avatar for edwinhermann
0
210
Member Avatar for faizal4cool

Hai friends, Anyone know firebug like plugin for IE.Pls help me Thanks

Web Development php
Member Avatar for ShawnCplus
0
112
Member Avatar for mrcniceguy

hi everyone! i`m trying to display a friend of a friend from a friend table,but i dont know how to do it. i have a table called friends,which has id,friendid and userid fields. Now i want if a member loggin, to be displayed a list of friends of his friends …

Web Development php
Member Avatar for mrcniceguy
0
115
Member Avatar for amalashibu

Hi, I had a problem when display the total amt from sql to textbox ------------------------------ create table get(Currentdate varchar(200),Expenses varchar(200),Amount decimal(38,2))-this a table ------------------------------ asp.net codings -------------------------- mycomm.CommandText = "SELECT sum(Amount) from get" dr = mycomm.ExecuteReader While dr.Read() TextBox6.Text = dr.GetDecimal(2) End While dr.Close() -------------------------------------------------------------- Error: Index was outside the …

Web Development asp.net sql
Member Avatar for amitshrivas
0
175
Member Avatar for verbob

What I would like to do is search a MySQL table for anywhere from one to 12 seprate fields, depending on what is submitted from a search form(has 12 different things that a user can search -- its an "AND" search only) What I am unsure of is how to …

Web Development mysql php
Member Avatar for verbob
0
132
Member Avatar for drewpark88

Not sure what I am doing wrong. I have an HTML email I want to automatically be sent out on approval of a payment. It is not working so can someone please look over my code and if you have any input that would be great! Thank you! [CODE] if($response->IsApproved()) …

Web Development email html-css php
Member Avatar for drewpark88
0
171
Member Avatar for scorpio222

I have developed a website, where i have 2 access levels, users and admin. on the server, i have admin folder with all admin stuff and user folder with all user stuff. based on the username,password combination from login page, i am redirecting the user to appropriate location. Everything is …

Web Development php
Member Avatar for scorpio222
0
72
Member Avatar for Stefano Mtangoo

What books or tutorial (online/downloadable) shall i learn to be able to make secure page? I need to know different technique and algorithms

Web Development encryption php
Member Avatar for phyrtech
0
121
Member Avatar for niranjancs

Hi, I have an HTML table with number of rows based on number of rows in a database table. So this table's rows are dynamically rendered. I am trying to make on of these column values a link and make that link submit the form. At that point I want …

Web Development java-jsp
Member Avatar for javaAddict
0
75
Member Avatar for genieuk

Hi, I wonder if someone can advise. My website has been working great ever since i first launched it. I made a script months ago to notify me of errors like 404, 500 etc and so on and it works perfectly. Two days ago someone accessed my website and they …

Web Development cpanel php
Member Avatar for genieuk
0
127
Member Avatar for nathan2oo3

Hi folks, having a bit of bother trying to post my values to another page using radio buttons. I have an exisiting form that I wanted to add the below code to. The form currently posts comments however I want it to post ratings of DVD's on the site. The …

Web Development php
Member Avatar for as.bhanuprakash
0
102
Member Avatar for Exploded Fiber

I have a string- 3,3,2,2,3,3,3,2,3 - Is it possible to explode it by length, such as: 1-> [3,3,2] 2-> [2,3,3] 3-> [3,2,3]

Web Development php
Member Avatar for Exploded Fiber
0
87
Member Avatar for sniigg

I have a piece of code which is used by several aspx.cs pages and I want to put that code in a separate page so that all these pages access that separate page. I dont think i can use classes for this....

Web Development asp.net
Member Avatar for amitshrivas
0
101
Member Avatar for SMHouston

Ok, so here is my problem. I'm making a telephone registry that lets a user add information such as first/last name, address, zipcode, state, and telephone number. Then they save the contact. Which seems to be where my problem is. The contact is saved and their information is posted. A …

Web Development php
Member Avatar for SMHouston
0
164
Member Avatar for deepak@d

Hi I am a newbie in PHP.I need to dynamically create check box based on the value in the combobox.Is AJAX the only solution?How do i get the value of check box?Thanks in advance.Pls help me out.

Web Development php
Member Avatar for diafol
0
292
Member Avatar for Jooks

hi there do you know if it is possible to select data from a comma separated file? i need only name and message from this and show it in plain html or css number$sex$state$name$surname$zip$street$city$e-mail$ip$message$ there are many lines in the csv

Web Development html-css php
Member Avatar for Jooks
0
108
Member Avatar for xxmp

i am trying to find what is wrong with that but i can't find it [CODE] function check_form(formid) { var field=document.getElementById(formid); var wrongs=0; document.write("lol"); document.write(field.length); for (i=0;i<field.length;i++) { k=field[i]; temp=k.name; document.write(temp); if (temp.indexOf('email')==0) { document.write("lalala email"); if (check_mail(formid,temp)==true) { wrongs++; document.write(temp); } } else { if (temp.indexOf('til')==0) { document.write("lalala til"); …

Web Development javascript
Member Avatar for pritaeas
0
57
Member Avatar for assaf

Hi I'm trying to create tag pages based on one php page that will be re-written to the tag/[tag].html I'm not a programmer so my question is pretty basic. What I have done until now is to create the tagdetail.php and a call to the tag pages that have this …

Web Development apache php
0
84
Member Avatar for cloud09

I need a script that takes cropped image coordinates and dimensions from javascript cropper and crops the image. I know about the copyimage function, and have tried unsuccessfully to implement it. If anyone has tutorial that lays out how to use it or has a script that crop and saves …

Web Development php
Member Avatar for cwarn23
0
123
Member Avatar for xxmp

i have this function and it works right only to mozilla [CODE] function check_field(formid,field) { var k=document.getElementById(formid); if (k[field].value=="") { document.getElementById("wrong_"+field).innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;Κενό πεδίο"; } else document.getElementById("wrong_"+field).innerHTML=""; } [/CODE] i use this element to call it [CODE] <tr > <th width="22%" <?php if (isset($_SESSION["prob_onoma"])) echo "class=\"become_wrong\"";?> align="left" > Ονοματεπώνυμο&nbsp;:* </th> <th width="45%"> …

Web Development javascript
Member Avatar for Airshow
0
84
Member Avatar for kiyu2keith

I tried this one for some experiment and I can't seem to work it out can you help me about this? The problem here is that when you click on the Radio button then click the result button it should give an alert with number(this number is how may times …

Web Development javascript
Member Avatar for kiyu2keith
0
2K
Member Avatar for Tekkno

I have a script that generates random data into an array then uses a while loop to display the data. I have a separate script that takes a row from that array and inserts it into a MySQL database. The problem I am having, is that every time the page …

Web Development php session
Member Avatar for Tekkno
0
118

The End.