17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for surfgrommett

OK I have made a little progress and now face something else. I will paste my code here. OK here goes. I am loading a php page from another page by clicking on a table row. This table is filled with data from mysql. When i click on a row …

Web Development display php
Member Avatar for surfgrommett
0
151
Member Avatar for dan_t

Another question, Is there a way in php to send emails without having to use the "mailto:" ? Most everything I have seen uses this method, but a lot of people don't use MS Outlook. Thanks Dan

Web Development php
Member Avatar for dan_t
0
92
Member Avatar for k2k

i was having fun with php until i hit this road block... geolocation.class.php is in the same directory as my index.php.. anyone has any idea why it can't find it? =( /* * this is part of the index.php * / [code] <div id="midBox"> <table border="0" align="left"> <tr><td><script type="text/javascript"> var …

Web Development file-stream php
Member Avatar for saiprem
0
277
Member Avatar for sallecpt

hey guys. okay, I know how to count form values. something like; <?php echo count($_POST['field']; ?> where the field would be something like field[i] however, I am cracking my head to get a solution to count, but only where the field has a value. Please, someone, help me with this …

Web Development php
Member Avatar for diafol
0
217
Member Avatar for jellybeannn

I've got this code that creates a Table and a graph, the values have to be int for the graph. But in the table I want t display the values as... 1,000,000 How can I do this?? [code] public partial class output : System.Web.UI.Page { int max = 0; int …

Web Development asp.net c c# c++ dataset open-source
Member Avatar for finito
-1
110
Member Avatar for pradeepktg

Hi All, I have developed a web application using jps. I have a user pages, which can be accessed after entering login credentials. If a user tries to go the a certain page directly without logging in, it directs to login page, this works perfectly in all browsers except mozilla. …

Web Development java-jsp session
Member Avatar for pradeepktg
0
106
Member Avatar for dan_t

Ok guys, I've kind of got this file half way working, but I get this message: [B]Notice: Undefined index:[/B] uploadedfile on line whatever. along with this: The file has been uploaded. which is the good part. But I don't understand why I always get those undefined errors. [CODE]$uploaded_size =''; $uploaded_type …

Web Development php
Member Avatar for dan_t
0
128
Member Avatar for dan_t

Hi I'm using wamp on my local machine. I have my form and php script made but I'm not sure how to place my folder to recieve the file. ie:[CODE]move_uploaded_file($_FILES['file_that_was_uploaded']['tmp_name'], $_SERVER['DOCUMENT_ROOT'] . '/images/' . $final_filename);[/CODE] I'm not sure how to set my path on the serve for my images folder. …

Web Development php
0
56
Member Avatar for samarudge

Hey, So I have a small Flash application that plays a sound when a new message is received in a chat-box. The flash player is on a page embeded with an iframe. [CODE=html]<iframe width="1" height="1" frameborder="0" name="alerter" src="/chatbox/flash/alert/sound.php" id="chat_alert"></iframe>[/CODE] In the parent window, a variable called new_message is used to …

Web Development flash javascript
Member Avatar for samarudge
0
111
Member Avatar for rambok4

What is the problem with the following login code? [code] Dim conn As SqlCommand = New SqlCommand("Data Source=RAHUL-034890AF0\SERVER2005;Initial Catalog=user_accounts;Integrated Security=True") conn.Prepare() Dim command As Data.SqlClient.SqlCommand = New Data.SqlClient.SqlCommand("select", conn.Connection) command.Parameters(1).Value = txtusername.Text command.Parameters(2).Value = txtpass.Text Dim i As Integer = command.ExecuteNonQuery conn.BeginExecuteNonQuery() If Page.IsValid Then Response.Redirect("~/salesbill.aspx") Else Lblerror.Text = "Username …

Web Development asp asp.net mssql visual-studio
Member Avatar for kvprajapati
0
240
Member Avatar for pradeepktg

Hi All, How to store the resultset value in a array? I have a field "prodvalue" in DB Table, now i want to store this "prodvalue" in array. Am able to print the values of "prodvale" in jsp, but not able to store in array. Pl. find below the code, …

Web Development java-jsp
Member Avatar for pradeepktg
0
7K
Member Avatar for Erco21

Hi! I created a button and a textbox using javascript, now i want to make that when my button is pressed it gets the value from my textbox, and puts it in another textbox (got that sorted) only thing i cant find anywhere is how to make a button to …

Web Development javascript
Member Avatar for Erco21
0
372
Member Avatar for InsaneVr6

I wrote a script that will take data and post it to a database no problem, but at the same time I need the data to be emailed to two different email addresses and I never get an email. My code looks pretty solid and I am not sure what …

Web Development email first-post php
Member Avatar for InsaneVr6
0
167
Member Avatar for paragouldgamer

Ok so I am a rookie in php and working on populating drop down lists from a mysql database. I have a drop down list working that contains words, but my drop down list for my date refuses to work and I don't know what the difference between them should …

Web Development php
Member Avatar for paragouldgamer
0
113
Member Avatar for azegurb

here i dont understand what does this function do. any can explain it to me thanks beforehands [CODE]function query($qry) { if(!isset($this->database_link)) $this->connect(); $result = mysql_query($qry, $this->database_link) or die("Error: ". mysql_error()); $returnArray = array(); $i=0; while ($row = mysql_fetch_array($result, MYSQL_BOTH)) if ($row) $returnArray[$i++]=$row; mysql_free_result($result); return $returnArray; } } [/CODE]

Web Development php
Member Avatar for LethargicCoder
0
97
Member Avatar for Hypalink

I'm looking for a solution. I am developing a "user profile" php file which will render to the current user their profile information. The info rendered and seperated into different divs (styled with css) will be in the form of html/php. However, if no information exists in a specific field …

Web Development html-css mysql php
Member Avatar for Hypalink
0
127
Member Avatar for whiteyoh

Hi all, Im wanting to have an "upload picture" button, that on clicking will upload the picture into a directory, but then capture only the filename of the picture to be stored in the database. This is for creating a catalogue entry. Im fine with the form information and disabling …

Web Development php
Member Avatar for whiteyoh
0
82
Member Avatar for phingko

Hi guys, I'm using ajax to display the xml file. On my html i put [CODE]<body onload="sendRequest(Display)">[/CODE] so everytime users go to the main.html, all the information in xml will be displayed after transformed by XSL Now the problem is it gets the error [I]Display is not defined[/I] While i …

Web Development javascript xml
Member Avatar for phingko
0
362
Member Avatar for qariella

Hi, i have a big problem trying to make my table sort things.. Table information is cooming from mysql db.. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Min telefonbok</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h1>Telefonbok</h1> <form id="form" method="post" action="phonebook.php"> <fieldset> <legend>Skapa ny kontakt</legend> <table> …

Web Development html-css php
Member Avatar for qariella
0
174
Member Avatar for Erco21

Hi! I want to insert an elelent (textbox) under another textbox that already exists, and then retriever the value from it for later use i tried with this, but no success: [CODE]function newtxtbox(){ var box = document.createElement("<INPUT TYPE='TEXT' NAME='RADIOTEST' VALUE='First Choice'>") document.body.insertBefore(box, existingbox); } [/CODE] Thanks in advance!

Web Development javascript
Member Avatar for fxm
0
131
Member Avatar for vibhaJ

Hi all, i want to know that 'Is mysql support chinese language?' If yes then any changes require in configuration? My site is in english. Let if any user have inserted their information in Chinese and if anyone search using Chinese keyword, then it should match with mysql and if …

Web Development mysql php
Member Avatar for colweb
0
71
Member Avatar for Erco21

Hi! I want to write some text to a textbox (using a greasemonkey script to be exact...) but i cant get the right element (textbox) as it somehow doesnt have an id. This is source that is relevant for the textbox (from original page) [CODE] <input name="WebGridBuilder$ctl04$ctl01" type="text" value="something" maxlength="32767" …

Web Development javascript
Member Avatar for Erco21
0
133
Member Avatar for albertkao

I want to call a C++ program from PHP with apache server on Fedora 12 linux. testprog is put in the same directory of the test php program. I see the output of exec('ls -lrt') but not exec("testprog"). Please help. The following are my php and cpp test programs. [CODE]<html> …

Web Development algorithm apache c++ php
Member Avatar for mutirelover
0
2K
Member Avatar for sharathk60

i am calling applet jar file like this [code] out.println("<APPLET code = com.Sample.class " + "codebase = /WebContent/WEB-INF/" + "archive = SamplePassword_signed.jar " + "WIDTH = 200" + "HEIGHT = 350>" + "</APPLET>");[/code] but it gives me a error that class path : class com.Sample.class not found. i have stored …

Web Development ide java-jsp
Member Avatar for sharathk60
0
273
Member Avatar for sallecpt

Could someone help me with this - I've cracked my head since. When i submit a form and then retrieve the data, there is no paragraphs. Yes I am aware of HTML encoders like TINYMCE but I'd like to submit in plain text. I tried htmlentities and htmlspecialchars but nothing …

Web Development php
Member Avatar for sallecpt
0
186
Member Avatar for kseling

can anyone tell me why this is getting a runtime error? [code=html] <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="windows-1251" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.Odbc" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register TagPrefix="uc1" TagName="links1" Src="/includes/_header.ascx" %> <%@ Register TagPrefix="uc2" TagName="links2" Src="/includes/_nav.ascx" %> <%@ Register TagPrefix="uc3" TagName="links3" …

Member Avatar for kseling
0
190
Member Avatar for wewehalim

Hi, I am making a form validator which has some field like "credit card number" and "credit card security code" I need to make sure that those fields only contain digit, no alphabet and any others characters like "." , "," , etc. I don't have any idea on how …

Member Avatar for d5e5
0
176
Member Avatar for wewehalim

Hi, i am making 3 forms, let's say, form1, form2, form3. In form1, there is a field "givenname" and a submit button that link to form2, and i want to pass this field to form2, i can pass this without any difficulty. However, i also want to pass the field …

Web Development php
Member Avatar for gotschai
0
141
Member Avatar for zilonox

First, let me start off by saying I am using ASP.NET 2.0 with VB as the default language using Visual Studio 2005. I have a form that has an asp:panel on it that is seeded with an iniitial control. Through the use of the form, additional controls may be dynamically …

Member Avatar for zilonox
0
461
Member Avatar for Hammond

I'm having troubles getting a userlogin validation up and running. The login itself works fine, but i need some form of errorhandling on logging in with wrong credentials. My code so far looks like this: [CODE]<%@ Master Language="C#" MasterPageFile="/masterpages/PageWithoutLeftmenu.master" AutoEventWireup="true" %> <%@ Import Namespace="System.ComponentModel" %> <script runat="server"> void OnLoginError(object sender, …

Web Development asp asp.net
Member Avatar for Hammond
0
299
Member Avatar for dougancil

I have almost finished a site that I've been working on but have one last thing that I don't know where to add. I have a bulk insert sql query that I want to insert into the .vb code behind and have no idea where to put it. Basically, the …

Web Development asp.net sql web-server
Member Avatar for rohand
0
141
Member Avatar for niths

[QUOTE]hi all, i need to echo the value obtained in the mysql query. so can any one .. Thank u.. [/QUOTE] [CODE]$sql2="select reportingto from users where username='$_SESSION[username]'"; mysql_error(); $result2 = mysql_query($sql2);[/CODE]

Web Development php
Member Avatar for niths
0
97
Member Avatar for m-hrt

i have made a popup menu in fireworks cs3 its working fine in all browsers the problem is that its hiding under the flash features bar as shown in the image where in firefox its working fine what should i do? Internet explorer [IMG]http://i44.tinypic.com/2mhczr5.jpg[/IMG] Firefox [IMG]http://i43.tinypic.com/30tm3qv.jpg[/IMG] Coding: [code]<!DOCTYPE html PUBLIC …

Web Development flash html-css javascript
Member Avatar for rajarajan2017
0
237
Member Avatar for wewehalim

Hi, i am making a payment detail form which required user to put the detail of their credit card as well as the expiry month and year for the credit card. The "expiry month" and "expiry year" field is separated into different fields. The validator should check that the expiry …

0
72
Member Avatar for bobbymoir

My SEF URLs are working fine on my local machine (WAMP Server) but when i upload it to server (Server API : CGI) it shows all the pages as 404 error. Here is the code i use : [CODE] 1) .htaccess : Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule …

Web Development api php
Member Avatar for bobbymoir
0
160
Member Avatar for wewehalim

Hi, I am making a form validation for my website. I need to put red asterix (*) in the compulsory field. In my form, if "Country" value is Australia, then the "State" and "postcode" field is necessary. If "country" is not Australia, then the "state" and "postcode" field are optional. …

Member Avatar for wewehalim
0
112
Member Avatar for egoche

Not sure if I'm in the correct forum but... I have a form with three select boxes. Box 1 has a variety of choices, but boxes 2 & 3 are empty. When the person selects an option from box 1, box 2 gets populated with choices. When the person selects …

Web Development javascript
Member Avatar for egoche
0
96
Member Avatar for midhula

i have created a website application in asp.net using c# for our company's typical department.we dont have a server here.so it need to be deployed into a single computer.how shud i do it so that it can be used as a software in a click away...

Web Development asp.net
Member Avatar for dnanetwork
0
553
Member Avatar for dmkc

Hi guys, I have a link in my php page that looks like the following: [code] <?php echo "<a href=hotel-map.php?id=$pid>Map Details</a>"; ?>[/code] Although instead of the "map details" text I want an image there... can someone tell me how I'd do this please? I can't seem to find anything around …

Web Development image php
Member Avatar for dmkc
0
101
Member Avatar for 4789787

Ok so this game works perfectly fine on my own windows test box webserver but when I upload it to my website it doesnt work at all, It gives me the error in this php script, and iv determined the problem lies in the HTTP Referer method used, so is …

Web Development php
Member Avatar for colweb
0
339
Member Avatar for bjeffries

Hey I am not a guru with ajax I have only used it, maybe two times before. What i am trying to do it create a site were all the content on the pages load through a box called: <div id="content"> All this works fine. But when you click the …

Web Development javascript
Member Avatar for bjeffries
0
112
Member Avatar for roostr

I have the name of a php file stored in the database and i need to call that name and display that file on the current page. The code below tries to display a page called "$lay" [code=php] <? $q = "select layout from HomeUser where username = '$username'"; $lay …

Web Development php
Member Avatar for roostr
0
85
Member Avatar for theMuffin

I am totally a newbie.. here is the code i have it working on another site or two but now it won't work here.. what am I doing wrong? <?php //we need to set a var to find what page we are on $pageOn = basename($_SERVER['PHP_SELF']); //this is used for …

Web Development php
Member Avatar for theMuffin
0
108
Member Avatar for furqan219

I have 100 records in My DB. I want to show 10 and then add another field in the record as UPDATE and then show these 10 as printer friendly.

Web Development php printer
Member Avatar for diafol
0
80
Member Avatar for jeeter19

Hi I'm just trying to input two string variables into 2 fields of a database that are VarChars. [CODE] $name = "jear"; $pass = "jartt2"; $query = 'INSERT INTO `user` (`id`, `name`, `password`, `char_name`) VALUES (NULL, '$name', '$pass', 'test')'; $result = mysql_query($query); [/CODE] This is the snippet of code that …

Web Development mysql php
Member Avatar for jeeter19
0
74
Member Avatar for dmkc

Hi everyone, Ok, what I want to do is display a url that's stored in my database within an iframe when the specific record is selected. The code I had to display the record correctly is: [code] <?php $conn = mysql_connect(HOST,USER,PASS); $db = mysql_select_db("***") or die( "Unable to select database"); …

Web Development mysql php
Member Avatar for dmkc
0
1K
Member Avatar for manolisvl46

[CODE]$uploaddir = $_SERVER['DOCUMENT_ROOT'].'/bla/bla/uploads/'; $file = $uploaddir . basename($_FILES['uploadfile']['name']); $data = file_get_contents($uploaddir . $_FILES["uploadfile"]["name"]); $data=split("[;\r]",$data); include_once("processes.php"); $ldapconn=connectToDB(); $info["cn"] = $data[$c]; echo "|onoma-->"; echo $info["cn"] ; $c++; $info["sn"] = $data[$c]; echo "|epwnimo-->"; echo $info["sn"] ; $info["objectclass"][0] = "top"; $info["objectclass"][1] = "organizationalPerson"; $r = ldap_add($ldapconn, "cn=".$info['cn'].",cn=............,ou=.......,ou=......,ou=.....,dc=...,dc=gr", $info); [/CODE] so i get the attributes …

Web Development php
Member Avatar for manolisvl46
0
944
Member Avatar for jamshed ahmed

[CODE] here is java script code function ShowMsg() { if(document.getElementById("txtVerifierName").value=="") { alert("PLEASE ENTER VERIFIER NAME.."); return false; } <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="ShowMsg()" onclick="btnAdd_Click" /> [/CODE] NOW THE PROBLEM IS THAT WHEN I CLICK THE BUTTON, IT SHOWS THE MESSAGE THAT PLEASE ENTER VERIFIER NAME BUT EXECUTION DOESN'T STOP THERE, …

Member Avatar for jamshed ahmed
0
223
Member Avatar for itisnot_me

Warning: array_sum() [function.array-sum]: The argument should be an array in pdf.php on line 112 i am getting this error and i dont see what the problem is. it calls values and adds them [CODE]$result = mysql_query("SELECT * FROM sold_produce WHERE invoice_id='$invoice_id' "); while($myrow = mysql_fetch_assoc($result)) { $total2[] = $myrow['total']; } …

Web Development pdf php
Member Avatar for rajarajan2017
0
128
Member Avatar for rouse

I need to iterate through a JSON object in JavaScript or jQuery that is returned from a PHP file with the a json_encode function call: echo json_encode ($varDump); The beginning of the JSON objects looks like the following: ["date","Rescription",{"date":"1715-05-03","description":"Edmund Halley observes total eclipse phenomenon \"Baily's Beads\""},{"date":"1765-05-03","description":"1st US Medical school opened"},{"date":"1797-05-03","description":"Jamaica …

Member Avatar for rouse
0
358

The End.