17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jrdark13

The code below I have a problem... When you hit enter on a text field firefox stays at the same page because I have returned false; (I assume) but IE still submits the form normally. What am I doing wrong? [CODE=javascript] window.onload = function() { var form = document.getElementById('keyword'); var …

Web Development javascript
Member Avatar for jrdark13
0
155
Member Avatar for ssreevidya.m

Hi, I stored a file in the folder taht selected using file upload control. When I tried to view this content from that folder I got an error like this. Cannot find the C:\Documents and settings\Terapc\LocalSettings\temporary Internet Files\Content.IE5\6AJ9DNHZ\name.txt file Do you want to create a new file? The code I …

Web Development asp.net file-stream file-system
Member Avatar for nhauck
0
86
Member Avatar for tyop

I'm having a problem with newline characters and nl2br(), Basically I have a form with a textarea, it reads from a XML file and puts the contents into the text area. Then changes can be made to the text, button clicked, XML updated. Viewing the XML after it gets updated …

Web Development php xml
Member Avatar for mschroeder
0
118
Member Avatar for atif.muhammad

Hi. I'm new in programming. I have idea backend (database in SQL Server 2000) but no idea for frontend programming. I decide to use SQL Server 2000 and ASP.Net 2.0 Else one share/tell my how to became i familar with ASP.net.

Web Development asp asp.net
Member Avatar for greeny_1984
0
84
Member Avatar for shobitha

hi all...i'm a beginner in c#.... for selecting a field from database we use ds.Tables(0).Rows(0).item(0) in vb.... how can i do t same in c#.

Web Development asp.net
Member Avatar for shobitha
0
269
Member Avatar for redgem

The full error is: Parse error: syntax error, unexpected T_STRING in .../cgi-bin/register_login.php on line 33 The code is set to check if an email exists in the MySQL database. If the email does exist, then it checks the password and if both agree loads the users account into an array. …

Web Development php
Member Avatar for redgem
0
337
Member Avatar for ericstenson

Hi - I was wondering if there is a way to force a postback after the FileUpload1 control has a file... Right now, people his "Browse" select the file then click another button to upload the file. I want to write code on postback to automatically write the file to …

Web Development asp.net
Member Avatar for SheSaidImaPregy
0
1K
Member Avatar for khr2003

I have found while i was surfing the intent a function that shows how long a topic was posted. this is the function: [CODE]function RelativeTime($timestamp){ $difference = time() - $timestamp; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { // this …

Web Development php
Member Avatar for khr2003
0
69
Member Avatar for ayi_102

[CODE] <script type="text/javascript"> function resetLists(){ document.forms["body"].elements["select1"].selectedIndex = 1; document.forms["body"].elements["select2"].selectedIndex = 1; } </script> </head> <!--Start the html body--> <body id="body" onload="isColorSet()"> <form action="" onsubmit="return false;"> <form id="body"> <!--This is where the changes happen--> <div id="test">This is supposed to be a nice little navbar. Select a new font to change this …

Web Development javascript
Member Avatar for ayi_102
0
296
Member Avatar for emhmk1

Hi there, I have recently added a login system to a site i'm doing and i'm stuck on something thats getting quite annoying! The user registers then gets an email with an link to follow to activate the account. The problem is the $link in the email is just text …

Web Development php
Member Avatar for emhmk1
0
138
Member Avatar for nmcgoo108

Hey Guys, I just set up a contact form on my site and used an image as the "send" button. When I get an email from the form, I get x= some number and y= some number. So the form is sending the coordinates where the user clicks on the …

Web Development email php
Member Avatar for nmcgoo108
0
200
Member Avatar for sonakrish

hi all... Am a beginner in c#. wen i place a control in a webpage and double click it i'm getting it's default event. how can i view its other events and how to include in my coding. Thanks in advance.

Web Development asp.net c c# c++
Member Avatar for sonakrish
0
116
Member Avatar for jober

here the code, [code=php]<?php $a = $_GET['Cors']; $b = $_GET['sem']; $c = $_GET['yrlvl']; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO sked (crs,sm,yrlvl) values ('".$a."','".$b."','".$c."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php the listbox is "sem", tnx[/code]

Web Development php
Member Avatar for diafol
0
183
Member Avatar for squirell

Hi, This is my first post on this forum. Apologies in advance if this isn' the right place or there isn't enough info. I'm basically trying to retreive an ID from a quesry string... xyz/nuts.aspx?nuttype=7 What I'm having trouble with is defining the variable and referencing the querystring in the …

Web Development asp.net dataset
Member Avatar for squirell
0
94
Member Avatar for isotope

Hi everybody, I'm trying to read a Microsoft Word file, exported as microsoft xml, with PHP and simple_xml but I can't figure out how to do it exactly. Only things I managed to do are: [CODE] $tempXml = simplexml_load_file(file.xml); $xml = $tempXml->asXML(); print $xml; [/CODE] If I print before the …

Web Development microsoft-access php xml
Member Avatar for isotope
0
174
Member Avatar for khalidmehmood

Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} …

Web Development java-jsp perl
Member Avatar for peter_budo
0
2K
Member Avatar for jober

++++Here is my code in to call the records from the list box that must be display in the datagrid. [code=php]<?php $a = $_GET[$query1]; $b = $_GET[$query2]; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO try (section,grp) values ('".$a."','".$b."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php // …

Web Development php
0
84
Member Avatar for gilmarP

Good day! Im trying to unit test my current project(the code behind) but I can't manipulate the controls inside the content page. Say I want to put some text inside the textbox, where textbox is inside the content page. I tried the accessor but failed, example: MyClass_Accessor acc = new …

Web Development asp asp.net
Member Avatar for gilmarP
0
91
Member Avatar for txwebdesign

I'm looking for C# based, asp.net code (either with or without ajax extensions), that will allow me to load full size images (from thumbnails) into a "template" or aspx page that I will have focused advertising embedded. I know I have to create the thumbs gallery page and the ad …

Web Development advertising asp.net image
Member Avatar for txwebdesign
0
170
Member Avatar for dreamer14

Is It possible? Tried this but all i see is blank haha [code] while (rs.next()) { String c=rs.getString("ProductID"); String d=rs.getString("ProductName"); String e=rs.getString ("ProductImage"); out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>"); } [/code] ANy one with recommendations on how to make a picutre based drop down …

Web Development java-jsp
Member Avatar for dreamer14
0
161
Member Avatar for CasTex

Hello coders, I have a script that saves the values to database. I have this value [CODE]$uzuncuk = $cummle." is easy to use. We suggest you to install ".$cummle." to your computer and view the features of the product. For your safety, please have a decent antivirus installed, with updated …

Web Development php
Member Avatar for CasTex
0
107
Member Avatar for lifeworks

Hi Im creating a list of tutorials on my website and I want to group them by the designer. Is it possible, to write a MySQL query which will function on a PHP website which prints the designer name once and then lists all of his tutorials underneath... in one …

Web Development php
Member Avatar for lifeworks
0
119
Member Avatar for khr2003

I am not sure where to post this topic but I though this section is the right one. I have a large amount of data in a MS word file. Basically, I want to automate the posting of this data into my website through the normal form of posting topics …

Web Development php
Member Avatar for khr2003
0
115
Member Avatar for Elmo_loves_you

Hello Everyone :S I am rather new to ASP.NET. I have an SQL Server 2005 database set up. So far its quite basic with just two tables (UsersLogin, Roles). My aim is to allow users of different ranks to login to the system ie. Admin, Staff etc. [B]UsersLogin [/B] table …

Web Development asp.net database-design
Member Avatar for salaam_taher
0
163
Member Avatar for impactdesign

I am trying to create a personality test using javascript and I need help writing a javascript that calculates 4 columns of 12 rows. Each column will have it own total. So column 1 = total 1, column 2 = total 2 and so on. What I would like to …

Web Development html-css javascript
Member Avatar for essential
0
127
Member Avatar for rajeesh_rsn

Hi i had a web form with an input text area in it I need to give some restrictions to user in that text area. 1. Need to deny users to type "<",">" these symbols in that text area. 2. Also deny from type more than 400 characters... I used …

Web Development javascript
Member Avatar for almostbob
0
109
Member Avatar for assgar

Sticky note refresh not working Hello I am trying to create a sticky form. I would like to use javascript to refresh the page using drop down selection to trigger the refresh. The problem is I cannot get it to work. See test3. I tried two other example that worked …

Web Development apache javascript xml
Member Avatar for assgar
0
140
Member Avatar for marcmm

I'm trying to use some dynamic path names for an image upload page. In a tutorial they had something like this: [code] <?PHP $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // this echoes something like " /foldername/ " presumbing that the php file is set inside that folder in the root. $uploadsDirectory …

Web Development php
Member Avatar for Yayo_SK
0
116
Member Avatar for mangel.murti

hi all new to php ..... how to protecte links on userpage when he login successfully. i want that out side user who not logged in ,can not see page after copy those links in browser.any example. thanx in advan......

Web Development php
Member Avatar for buddylee17
0
106
Member Avatar for jzimmerman

New PHP person here.. I am setting up an event registration page. The users must select from two arrival dates for hotel and flights. from my database, I am able to populate a dropdown with the two dates. [code] "SELECT DATE_FORMAT(firstarrival, '%d %M %Y') as newfirsta, DATE_FORMAT(secondarrival, '%d %M %Y') …

Web Development mysql php
Member Avatar for jzimmerman
0
155
Member Avatar for culebrin

I have a SP (sp_test_procedure) created from a SQL Server Project in my SQL Server 2005 database, inside this SP I have a call to another SP which inside calls to a SP in another Database Server (SQL 2000) through a cross-linked connection. When I execute it from the Management …

Web Development mssql php sql
Member Avatar for culebrin
0
304
Member Avatar for emclinux

Is there a way to gather the HTTP header send from a server so that I can check if it is a code 200 or a code 404 and base the output from that. Thanks for the help EmcLinux

Web Development php
Member Avatar for emclinux
0
145
Member Avatar for emclinux

I have a PHP/MySQL app that when a user enters a description of there club that it reports back on a group page. When a user enters there information the line breaks are removed and all becomes one long string. Is there anyway that I can keep there line breaks? …

Web Development php
Member Avatar for emclinux
0
180
Member Avatar for rajeesh_rsn

hi I had a web site made in php. I need to collect visitor data ( ip address, visiting time) and store in it a database. I wrote the code like this [CODE]date_default_timezone_set('Asia/Calcutta'); $time= date('D,F j, Y, H:i:s A'); $ip=getenv("REMOTE_ADDR"); mysql_query("INSERT into visitordetails (ip,time) VALUES ('$ip','$time')") or die(mysql_error());[/CODE] and this …

Web Development php
Member Avatar for rajeesh_rsn
0
114
Member Avatar for khr2003

hi I am making a script to extract data from a table from a website using explode function and then insert the data into the database. I have stuck with foreach loop, this is how it looks: [CODE] $table_data = explode('<table cellspacing="1" cellpadding=1" width="90%" border="0" bgcolor="#EFEEEE">', $data); $end_table= explode("</table>", $table_data[1]); …

Web Development php
Member Avatar for khr2003
0
126
Member Avatar for sniper1983

Hi I am trying to fire a javascript function from my .net radiobuttonlist but it does not fire. How do I fix this: [code=asp.net]protected void Page_Load(object sender, EventArgs e) { this.rbl_NumberType.Attributes.Add("OnSelectedIndexChanged", "return NumberTypeChanged();"); } ... function NumberTypeChanged() { alert("KJJK"); } ... <asp:RadioButtonList ID="rbl_NumberType" runat="server"> <asp:ListItem Value="0" Selected="True">Somnething1</asp:ListItem> <asp:ListItem Value="1">Somerthing2</asp:ListItem> </asp:RadioButtonList>[/code] …

Web Development asp.net
Member Avatar for sniper1983
0
360
Member Avatar for ayi_102

Hi i make list box to change the font type, font color, font size and bacground color in listbox this is what i made so far [CODE] <html> <head> <!--Function to do the background color--> <script language="JavaScript"> var backColor = new Array(); // don't change this backColor[0] = 'red'; backColor[1] …

Web Development javascript
Member Avatar for ayi_102
0
2K
Member Avatar for Lensva

hello gents, i have two pages: page1.php takes user input, page2.php should process it and then return page1 either error or success messages. there seem to be an error(s) i cant figure out: when you fill the form with correct data you get: [code]Warning: Invalid argument supplied for foreach() in …

Web Development html-css php session
Member Avatar for Lensva
0
229
Member Avatar for Kusno

Dear all, How do I access folder+files is located outside webfolder ? My Intranet application website address is [url]http://160.115.30.20/BMI[/url] and physical folder in server is C:\Inetpub\wwwroot\BMI. Folder I want to acess is located in C:\Inetpub\wwwroot\Documents. Now, The folder is in webfolder. I want to move it to outside webfolder to …

Web Development asp.net
Member Avatar for serkan sendur
0
2K
Member Avatar for darylesha

I have researched and have not come up with any examples and no answer as to how to do this. Please help... The molecular2.java does all the computation. I will only include a snippet of it. This file is like this because I needed to return multiple items and could …

Web Development java-jsp
Member Avatar for peter_budo
0
192
Member Avatar for sacarias40

i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = …

Web Development php
Member Avatar for sacarias40
0
95
Member Avatar for clem_c_rock

I have a strange situation. I want to have a create_user form w/ all the fields blank When I call the create_user method, the corresponding create_user.html.erb form is displaying the first record's data from the user table in the form fields Here's a quick view of my form: [code] <% …

Web Development ruby
Member Avatar for clem_c_rock
0
100
Member Avatar for Liszt

I use Visual Web Developer 2008 and have just started out a project. When pressing F5 that compiles the project the program opens a blanc Explorer window. What I now wonder is how it is possible to make this whole window to be completely Black instead. I am searching the …

Web Development asp.net
Member Avatar for Liszt
0
86
Member Avatar for vimalfor5

Hi all, i want to create one crystalreport from following storeprocedure [CODE=SQL] CREATE PROCEDURE dbo.usp_proc1 ( @ID as int ) as declare @Var1 as varchar(1000); set @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(varchar,@ID) print @Var1; exec(@Var1); [/CODE] This is not the actual code but its a demo of …

Web Development asp asp.net dataset
0
86
Member Avatar for enim213

hi All, I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql.. any idea would be really appreciate Thanx enim

Web Development php
Member Avatar for enim213
0
146
Member Avatar for Liszt

I am using "Microsoft Visual Web Developer 2008 Express Edition". I have created a First page with a button and 2 textBoxes( see attached file) In my project I have added a new item/Page 2 to this project. What I now is trying to do or wonder how it is …

Web Development asp.net
Member Avatar for Liszt
0
110
Member Avatar for JackieW

I have a simple form that collects names in time slots. The form lists all the time slots with the names and blank spots available. The problem I'm running into is people are overwriting other names so they can get a time slot they want. I've done some research and …

Web Development asp dataset
Member Avatar for JackieW
0
88
Member Avatar for VernonDozier

I have a tic tac toe program. The game board has a table with 9 cells. The cells need to be clickable, but when I click them, nothing happens. Cells are created in line 25. The [ICODE]cellClicked [/ICODE]function on line 10 is supposed to execute, but line 12 appears to …

Web Development javascript
Member Avatar for hielo
0
99
Member Avatar for mr.khurrams

i need a java script that should take pictures from a Folder and automatically play the slide show of these pictures when HTML page load......i need it urgently....plzzzzz help me

Web Development javascript
Member Avatar for bappaditya
0
233
Member Avatar for Traicey

I am developing a website and am struggling to make sure that even if my web page is minimized a user can still see the entire content of the page without maximising the page, I believe thats achievable bcoz I have seen websites like that even this one, anyone knows …

Web Development asp.net html-css
Member Avatar for Traicey
0
89

The End.