52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ziggynet

Hi Everyone I have two aspx pages that updates two values in a database. I have an update button called Button1. Button1 in the first page redirects to the second aspx page. On the second page i want to select a value and then redirect to the first page. How …

Web Development asp.net
Member Avatar for sujimon
0
115
Member Avatar for sakush100

[CODE]<script type="text/javascript"> function submitmyform(){ { var docx = document.getElementById(formID) document.docx.submit(); setTimeout(function(){self.close();}, 10); }} </script> <?php $xyz=20; $stackid=0; while($stackid<$xyz){ echo'<div align="right"> <form id="'.$stackid.'" name="'.$stackid.'" method="POST" action="updates/comment.php"> <table bgcolor="#E4EFF8" border="0" width="90%" style="border-collapse: collapse" id="table1"><tr> <td align="left"></font></td> <td align="right"><font size="2" face="Verdana"><a href="#div'.$stackid.'" onclick="toggle('.$stackid.')">Comment</a> | Rate&nbsp;</font></td></tr> <tr><td colspan="2" align="center" bgcolor="#E4EFF8"> <textarea rows="1" name="S1" cols="45"></textarea></td></tr> …

Web Development php
Member Avatar for sudeepjd
0
138
Member Avatar for bobymathews

In php we use the following code to block the url link passing via text boxes or textarea on form submit(For avoid bad link passing from contact us form ).Is there any methode like this in classic asp using vb. if($_POST['Register']) { $username=$_POST['username']; if (preg_match('~(?:[a-z0-9+.-]+://)?(?:\w+\.)+\w{2,6}\S*~i', $username)) { die('Access Denied Avoid …

Web Development asp vbscript
Member Avatar for achinaseller
0
130
Member Avatar for JustmeVSI

Hy guys how can I go through each column of a result returned form the database. In other words do this: [CODE] $command = "SELECT * FROM Persons"; $result = mysql_query($command); while($row = mysql_fettch_array($result)) { [COLOR="Red"][INDENT]foreach($column in $row) {[/COLOR] [INDENT]if($column!=null) { ... }[/INDENT] [COLOR="Red"]}[/INDENT][/COLOR] } [/CODE] How to do the …

Web Development php
Member Avatar for JustmeVSI
0
75
Member Avatar for genki01

I found some code to open a link in a new window, and then change the current window to something new as well. This works fine in Firefox, but testing it in IE8 doesn't work. [CODE]<SCRIPT type="text/javascript"> function poptastic(url) { newwin=window.open(url,'name','top=0,left=0,resizable=1,scrollbars=1'); newwin.moveTo(0,0); newwin.resizeTo(newwin.screen.availWidth, newwin.screen.availHeight); if (window.focus) {newwin.focus()} window.location = "thankyou.php"; …

Web Development javascript
Member Avatar for genki01
0
555
Member Avatar for idlackage

I have a Javascript function that dynamically creates a box with document.getElementById('lightbox').innerHTML. In the box will be, among other things, a div with id="div1" and visibility="hidden" and a form which, onSubmit, calls the function myFunction. The function basically looks like [CODE] myFunction() { document.getElementById('div1').style.visibility = 'visible'; }[/CODE] which has worked …

Web Development javascript
Member Avatar for Taywin
0
115
Member Avatar for feoperro

Hi, Does anyone know where I can read about ways to protect a website from potential threats? i.e. SQL Injection, etc. In particular, a website using HTML/JSP/Servlets/Java/Tomcat. Thanks, Ashton.

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

Hi everyone I know there already is a thread on that one, but not enough for me to make it work. So I know I can do : $command = "mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]"; then system($command); the thing is, I'm on a web server (hosting company) …

Web Development mysql php web-server
Member Avatar for guyinpv
0
139
Member Avatar for FatherLen

i am trying to use mscomm in html and javascript to communicate with a device over the serial port but when i run a test of the activex object in a .hta file i get the error "Automation server can't create object". does anybody know why its doing this? it …

Web Development javascript
Member Avatar for Taywin
0
402
Member Avatar for djcrab

I'm a little lost on these questions of a quiz I just took...Any help is appreciated! 1st question: What is the value of returnValue in the following code segment? returnValue = 17 = = "17"; answer choices: True False 17 NaN *I chose True<--I think that's right, but I'm not …

Web Development javascript
Member Avatar for Taywin
0
102
Member Avatar for pamdooley

I have the following code:[CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO inventory_software_request (Software, Name, NISD, Room) VALUES (%s, %s, %s, %s)", GetSQLValueString $_POST['software[]'], "text"), GetSQLValueString($_POST['name'], "text"), GetSQLValueString($_POST['nisd'], "text"), GetSQLValueString($_POST['room'], "text")); [/CODE] to send data to a MySQL database. the form includes a list of software …

Web Development mysql php
Member Avatar for hielo
0
189
Member Avatar for nurul_208

hye guys.. i've got a problem on inserting the data from mysql database into the textbox in php.. i dont get any error reply..but im still cant retrieve the data from the mysql database into text box in php.. below are the print screen and my sourcecode: this is the …

Web Development html-css mysql php
Member Avatar for nurul_208
0
763
Member Avatar for vaibhav1983

Hi All, I am trying to implement a directory like url rewriting in php. My URL goes like this [url]www.xyz.com/Parameter1/Parameter2/1[/url] This request is forwarded to a php script, getParams.php Parameter1 and Parameter2 in the URL are GET parameters. "1" in the url indicates the page number. The URL rule that …

Web Development php
Member Avatar for vaibhav1983
0
143
Member Avatar for teedoff

Hi new to php and I'm trying to learn how to set up connections to the database on my remote server. I'm using dreamweaver to create recordsets, then dispaying the results. Dreamweaver creates a connection file(I named student.php) automatically based on your database connections and login info. However, this poses …

Web Development php
Member Avatar for teedoff
0
341
Member Avatar for joshisumitnet

Dear Friends, I am following the bestuff.com's active member session. I am doing the following thing... 1. when user logs in, I update my database's field with value 'O' (means user is logged in and fires query which has flag value 'O') But the problem is how to check user's …

Web Development php session storage
Member Avatar for joshisumitnet
0
418
Member Avatar for SKANK!!!!!

[CODE]<script> function addText(event){ document.getElementById("insertid").value += (event.srcElement || event.target).firstChild.nodeValue.toString(); } </script> <textarea id="inserid"></textarea> <table onclick=addText(event)><tr><td>[bbcode][/bbcode]</td><td>[bbcode2][/bbcode2]</td></tr></table>[/CODE] problem is whe i click on the bbcode or bbcode2 it inserts it at the end of whatever is in the textarea. im looking to insert it into where the user clicks(where the carat is) like …

Web Development javascript
Member Avatar for lifeh2o
0
172
Member Avatar for debasishgang7

im new to php i have a problem.. i wanna design a website that will have index.php as the Home page. The index.php will include header.php(the universal header) menu.php(unuversal menu) topics.php(topics of my websites like global warming,child labour etc..) content.php(a welcome note for Home page.) ___________________________________________________ header.php ___________________________________________________ | menu.php …

Web Development php
Member Avatar for hielo
0
196
Member Avatar for snehalj

i have taken one mster page in my project. in that one image is there, that image is not displayed in other pages which are related to that master page. i have tried to change image extension also but it didnt work.

Web Development asp.net
Member Avatar for Borzoi
0
184
Member Avatar for slap01

im working on something that will display the title and the author, but i have seperate table for the title and author, my code displays the title but not the author, what should i do? heres my code [CODE]<html> <body> <form method=post action="find.php"> <h2>Search For:</h2> <p> Academic Year : <input …

Web Development php
Member Avatar for slap01
0
105
Member Avatar for snehalj

[code] string s = TextBox1.Text; string[] s1 = s.Split(new char[] { "&" }); Console.WriteLine(s1[0]); Console.WriteLine(s1[1]); [/code] above code giving me error as 'Cannot implicitly convert type 'string' to 'char' ' pls give me solition.

Web Development asp.net c#
Member Avatar for raj_developer
0
57
Member Avatar for nextdate

[CODE]if ($_POST['req_cash'] == 'requested' && $_POST['submit'] == ' Request Cashout ' && is_numeric($_POST['amount']) && $_POST['amount'] >= $min_cashout && $_POST['amount'] <= $roi_cash) {[/CODE] What is WRONG! Thank you!!

Web Development php
Member Avatar for vibhaJ
0
308
Member Avatar for h0neydip

I can't seem to figure out why it keeps showing me this error,where am i doing wrong?, can someone help me please [CODE] <?php include_once "cinc/Tbox.php"; # include the class file for textbox validation // BEGIN PROCESSING HERE // this version uses POST so we will see the data in …

Web Development html-css php
Member Avatar for =OTS=G-Man
0
194
Member Avatar for danswater

Hi! can someone help me to figure out with this code? [CODE=php] <form method="POST" action="insert.php"> <input type="checkbox" name="id[]" value="32">Article #32<br> <input type="checkbox" name="id[]" value="38">Article #38<br> <input type="checkbox" name="id[]" value="45">Article #45<br> <input type="checkbox" name="id[]" value="59">Article #59<br> <input type="hidden" name="referer" value="123"> <!-- This is the ID of the "referring" article --> <input …

Web Development php
Member Avatar for danswater
0
134
Member Avatar for quibbie

I want to allow people on my site to post html inks in the text box where they submit their articles. Here is the code for the text box: [CODE] <td width="75%" align="left" class="heading"> <textarea cols=75 name=article_summary rows=25 class=textarea style="overflow:hidden;"><?=$_POST["article_summary"];?></textarea> </td> </tr> <tr> <td colspan=2 bgcolor=white></td> </tr> <tr> <td colspan=2 …

Web Development html-css php
Member Avatar for quibbie
0
160
Member Avatar for akvlko

Hi Friends Currently I'm Developing a CMS in which I used JQuery for validation of form. In the State and City I have used Ajax to Fill the States after selecting the Country. All other validation are working fine but the validation I applied on the State field is not …

Web Development javascript javascript-jquery php
Member Avatar for hongle
0
190
Member Avatar for davecoventry

What I have is a list of file paths: dir0/file0.txt dir0/dir1/filea.txt dir0/file1.txt dir0/dir1/fileb.txt dir0/dir1/dir1/filec.txt dir0/file2.txt What I'd like to get is something like the following: [code] $paths=Array( file0.txt=>file0.txt, dir1=>Array( filea.txt=>filea.txt, fileb.txt=>fileb.txt, dir1=>Array( filec.txt=>filec.txt ) ), file1.txt=>file1.txt, file2.txt=>file2.txt ); [/code] It strikes me that this must be a fairly common requirement …

Web Development data-structure file-system php
Member Avatar for diafol
0
2K
Member Avatar for The5sisters

Although my server has php memory allocation of 64MB I get [QUOTE]Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 311296 bytes) in /home/kasey/public_html/Create/wp-includes/class-simplepie.php on line 4186 [/QUOTE] in my dashboard for WP/buddypress combination blog. I re-installed buddypress.WP won't allow a re-install despite the fact that it …

Web Development apache php wordpress
Member Avatar for The5sisters
0
155
Member Avatar for dschuett

I have a form that users fill out to send denial letters to customers. I have been struggling to figure out how to pass CHECKED checkboxes from a form to be passed to the $mail_body of the email. Here is what i'm working with: [CODE] <?php require_once "formvalidator.php"; $error_hash = …

Web Development email php
Member Avatar for guyinpv
0
110
Member Avatar for jonasjo

I have error in tis code.any help will b appreciable.tanks in advance. if(isset($_POST['btnsave'])) { for($i=0;$i<count($_POST);$i++) { if(!empty($_POST["hdntxtRow".$i])) { echo $_POST["hdntxtRow".$i]."<br />"; } } $question=$_POST['txtquestion']; $choice1=$_POST['txtchoice1']; $choice2=$_POST['txtchoice2']; $choice3=$_POST['txtchoice3']; $choice4=$_POST['hdntxtrow1']; $choice5=$_POST['hdntxtrow2']; $answer=$_POST['txtanswer']; $a=mysql_query("INSERT INTO question(questions,choice1,choice2,choice3,choice4,choice5,answer) VALUES('$question','$choice1','$choice2','$choice3','$choice4','$choice5','$answer')"); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META …

Web Development php
Member Avatar for ko ko
0
176
Member Avatar for eswar.aspire

Hello, I am doing simple Jquery ajax post to php and I am very new to three languages. Any suggestion or guidance. I have two iframes 1. iframe 1 is Navigation menu(loaded with flash menu). <iframe name=”menu”/> 2. iframe 2 is load the web page. <iframe name=”page_load”/> When I click …

Member Avatar for Airshow
0
149
Member Avatar for programmer12

Hello, Im trying to show my images with a limit of 2 but the while loop show the codes correctly in the source on the browser but the items are not showing on the web page.. How can i fix this issues... HERE is the codes [CODE] <!DOCTYPE html PUBLIC …

Web Development html-css php web-browser
Member Avatar for programmer12
0
85
Member Avatar for stolikp

Where should I keep connection object to database like ISession or SQLConnection? What's the best solution and why ? Is it Application, Session or Items ?

Web Development asp.net session sql
Member Avatar for glennt
0
122
Member Avatar for ceeandcee

Good Morning, I am writing code for a Hockey Pool site and I am working on the Standings page...typical divisional standings page. My code runs through a loop for the four teams in each division and yields results for each team and outputs fine. Here is my problem...I want to …

Web Development php
Member Avatar for ceeandcee
0
101
Member Avatar for fatpages

Hi All, can anyone suggest the e-commerce engine which is well adopted to sell virtual content (e.g. downloadable content, subscriptions, promo codes)? I tried Virtuemart for Joomla and Ubercart for Drupal, but they both are really limited and don't provide the "off the shelf" flexibility for virtual goods.

Web Development cms ecommerce php
Member Avatar for dennishall
0
134
Member Avatar for php4ever

I absolutely hate it when I trust a person and never collect a deposit on work only to NOT be paid when I'm done. I recently designed a flash page turn effect that is all XML controlled for a Realtor where the agents could simply upload the images to a …

Web Development flash php xml
Member Avatar for dennishall
0
152
Member Avatar for funlove201

hey can someone please help me with this thing? I wanna open a link when someone clicks on a button how can I do that?

Web Development java-jsp
Member Avatar for cale.macdonald
0
144
Member Avatar for ibshas25

i have set up users table and succesfully done all the inserts but i want give acess to users based on there roles. how can i do this???

Web Development php
Member Avatar for Stefano Mtangoo
0
84
Member Avatar for niths

hi all, In my page i had a dropdown with some values. so when i select others in dropdown i need a textbox to display under that select option. can anyone help me.... Thank u.. i tried this code but this is not working.... [CODE] <head> <SCRIPT LANGUAGE="JavaScript"> function activate(field) …

Web Development display php
Member Avatar for sudeepjd
0
128
Member Avatar for DonaldAlexander

Does anyone know of any PHP and MySQL code that will help me out? I'm looking to translate my website but without the use of Google, Yahoo, Bing and so on, but would like to try drive the website through a database. The idea was to have friends from around …

Web Development mysql php
Member Avatar for pritaeas
0
514
Member Avatar for captain.don

I have a small website,I have created html page having form in it.the form contains 3 text boxes that is.. name,email,comment.I need an e-mail script that can submit this form fields to my gmail or yahoo account.I have tried lots of script on internet but they are not working.Can anyone …

Web Development email php
Member Avatar for DonaldAlexander
0
129
Member Avatar for snehalj

[CODE]using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string connectionString; connectionString =("Data Source=INTRANETSERVER1;User ID=sa;Initial Catalog=HrData"); SqlConnection myConnection = new SqlConnection(connectionString); SqlDataAdapter …

Web Development asp.net dataset
Member Avatar for snehalj
0
514
Member Avatar for star_lavender

Hi. I have a calculate.js javascript file where all the function that execute the calculation is consist in this file. Now, I want to retrieve a data from the database for javascript calculation and be done in this calculate.js file. I have search a lot of methods to do this …

Web Development javascript
Member Avatar for star_lavender
0
145
Member Avatar for keok

Coding as below havinf error, help me please; echo"<input type='submit' name='submit' value='DELETE' "onclick="return confirm('Are you sure you want to delete?')">;

Web Development php
Member Avatar for keok
0
98
Member Avatar for snehalj

How check that database record is not present in ASP page? i have two combo boxes, selecting both if the record is present in the database it is showing, but if the record is not present how to check that & how to show msg?

Web Development asp
Member Avatar for snehalj
0
108
Member Avatar for JoeyWong

Hi all, i don't know how to solve this problem...i want store all the data into database. help pls~ thanks~ <!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" xml:lang="en" lang="en"> <head> <link href="/style.css" rel="stylesheet" type="text/css" /> <title>Insert New Institution</title> <script type="text/javascript"> function addRowToTable() { var tbl = document.getElementById('tblAddress'); …

Web Development html-css mysql php xml
Member Avatar for JoeyWong
0
1K
Member Avatar for DeepakSonee

Dear All, I am opening the excel file to create the object of that excel file using 'Microsoft.Office.Interop.Excel'. It is working fine with file system and local iis server on windows xp operating system. But when running the same code on windows 2003 operating sytem on local iis pagerequest time …

Member Avatar for DeepakSonee
0
553
Member Avatar for ebanbury

Hello I'm having trouble solving the following error: 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 '( )' at line 1 I have a php script which I've written in PHP6 which creates …

Web Development mysql php sql
Member Avatar for ebanbury
0
203
Member Avatar for trilithon

Hi All, Is there a way to have a login system that needs a file that is stored on the users computer present, similar to online banking sites that use a locally stored certificate (file) for verification or redirect to another page? Thank you, Max

Web Development php
Member Avatar for mschroeder
0
89
Member Avatar for jermaghs07

hey guys. i am very new to programing and was wondering if anyone else had seen this little trick. this is a little java code to get a saved password prom a website. javascript:alert(document.forms[0].elements[1].value) the forms and values change from site to site but this code works for this site. …

Web Development javascript web-browser
Member Avatar for mijaja
0
3K
Member Avatar for toocoded

Hi everyone, I wrote an INSERT for an insert form but for some reason it wont save the data tot he database. In phpMyadmin the rows are taken up with blank nothings. It seems to work but nothing is being stored. code as follows... [CODE]session_start(); $db_hostname = "localhost"; $db_password = …

Web Development mysql php
Member Avatar for toocoded
0
86

The End.