52,566 Archived Topics
Remove Filter ![]() | |
Hi. I have a problem with some JS at my website. The user has to fill out a form, enter his/her name, e-mail, phonenumber, location etc. The problem is that I don't want to have a fake phonenumber entered to my database, so I want to verify the phonenumber by … Web Development javascript | |
Hey all, Well I can't find a common solution for calculating price based on time elapsed and I thought you guys could help me a bit to find an appropriate solution. So, I need to calculate price like this: 24h - 40€ 30h - 50€ 36h - 60€ 42h - … Web Development php | |
![]() | Hi, I'm new to JQuery and attempting to write a script to check username availability. My problem is that no matter what I type, I always get back "This username is already in use." JQuery source: [CODE] $(document).ready(function() { jQuery.validator.addMethod("usernameCheck", function(username) { var isSuccess = false; $.ajax({ url: "username_availability.php", data: … Web Development javascript javascript-jquery php ![]() |
Why are there in the javascript variables both null and undefined? And when we use the null or undefined? please help me!!!!:icon_redface: Web Development javascript | |
Hi, I'm a beginner of JavaScript. I need the code for creating [b]pgv_pvid[/b] and [b]ssid[/b]. I had searched the web, and got some code, I wonder if the code is right: [code]var curDate = new Date(); var curMs = curDate.getUTCMilliseconds(); pgv_pvid = (Math.round(Math.random() * 2147483647) * curMs) % 10000000000; ssid … Web Development flash http-protocol javascript session | |
Hi, new to AJAX, trying to figure out how to do a very specific thing: I want to have a textarea update a database column and then pull down the info from that column and display it, without refreshing. I'm using JQuery and AJAX and PHP and SQL to do … Web Development javascript javascript-jquery sql | |
hi I have script that provides search in multiple sites. But i cannot understand why at the end we use [CODE] return false;[/CODE]? whynot we use return true? [CODE]<script type="text/javascript"> function dosearch() { var sf=document.searchform; for (i=sf.sengines.length-1; i > -1; i--) { if (sf.sengines[i].checked) { var submitto = sf.sengines[i].value + … Web Development javascript | |
//servlet [CODE] if(rs.next()) { String s1 = rs.getString("pname"); String s2 = rs.getString("remarks"); String s3= rs.getString("cnt"); String s4 = rs.getString("bsponsor"); String s5 = rs.getString("bprowner"); String s6 = rs.getString("priority"); list.add(s1); list.add(s2); list.add(s3); list.add(s4); list.add(s5); list.add(s6); } session.setAttribute("list",list); RequestDispatcher rd=getServletContext().getRequestDispatcher("/project.jsp"); rd.forward(request,response); [/CODE] //jsp page [CODE] <% ArrayList arr = (ArrayList) session.getAttribute("list"); String myString=""; … | |
Hi, I have gone over and over the subject and still confused. I currently develop in PHP 5.2.x along with MySQL. (awaiting host to upgrade to 5.3.x, hopefully not to long although on local i develop using php 5.3.5) Currently i use the standard MySQL functions in PHP like: [B]mysql_connect()[/B],[B] … | |
Do you know how to store multi-level menus in db and build them into html lists using php? thnx p.s.: i googled and could not find what i need Web Development php | |
Hi everyone, I need to generate an XML file from the 2 tables below: dbo.Guides - ID (int), Title (varchar) dbo.Steps - ID (int), GuideID (int), Info (varchar) Each guide has many steps which are linked by dbo.Guides.ID and dbo.Steps.GuideID Here is my current attempt (recordsets are [1] SELECT * … | |
the below code is intended to update a database file with the no of days late and tax calcs for each record. I'll understand this before I qive up. the subject is the error message. [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT invnum FROM oocust Where WHERE … Web Development php | |
I seem to have an error updating a checkbox using an SQL Query. I am trying to get the box to be checked if equal to 1 and unchecked if equal to 0. My database is updating correctly, but the checkbox is not. [CODE]<input type="checkbox" <?php if ($row['create_event'] = 1){ … Web Development php | |
Hi, I have created what i think is correct is one mysql_query with multiple counts. Could someone please tell me if i have done it rite ? plus how would i be able to access each count query using PHP so i can display each count query result? If it's … Web Development php | |
Hi The below script does the job I am looking for I am not to sure how to make the drop down dependant ex ; Val 1 in box one return Val1 in Box 2 etc.. any idea someone Sydney [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> … Web Development javascript | |
I have a textarea box that sends the information to Javascript via onclick(). I want to execute the code the user puts into the textarea. How can I do that? [CODE]var code = document.getElementById('code').value [/CODE] That's part of the function that gets called via onclick. See that variable is called … Web Development javascript | |
![]() | You've already posted this at the end of somebody else's thread. Web Development php |
Hi all, I use a program (OpenGrads) to run on the command prompt in OPENSUSE. It worked on Windows very well but I cant run the command on linux. System commands works without any problem. But the specific command that is 'grads' doesnt work. I used system(), exec(), shell_exec() functions … Web Development php | |
Hi I have the following array: [CODE] $links = array("Home", "About us", "Our Services"); foreach($links as &$link ){ $space = implode(" ", $links); echo $space ; break; } [/CODE] the above code displays Home About us Our Services, but now I want to use the same array for links so … ![]() | |
I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you! | |
Hi, what I want to do is create a menu with rollover buttons but each button also changes the background image of a div. I've managed to change the colour of the div but not add an image there. I've added my code so you can have a look. Case … Web Development image javascript | |
I'm creating a html form that allows the user to search for people in a database. I want the form to work with drop down selects and radio buttons. Currently I'm using an if { } elseif {} else if{} format to my script. However this causes a problem because … | |
I have a html form where a user can narrow down his or her's search. For example they want to find a person based off of a number of characteristics, say hair color, eye color, body type. These are selected by a drop down menu and there are additional radio … | |
Im having problems loading content with ajax, the problem its that lets say that I have 2 links on my index.html, one is #page1 and the other one is #games1, well have happens is that if I click on either of them it just loads the same site, even thought … Web Development html-css javascript php | |
I have the following code doing ALMOST what I want. It shows an input field when the select value is "dropped". The problem I am having is that if I select "dropped" it will display the input field, but if i select a different value AFTER selecting "dropped" the input … Web Development html-css javascript javascript-jquery | |
this program inserts data (correctly) into fields b4 update but I get the error message when I submit. Can someone tell me what is wrong with my code? [CODE]<html><head> <!--when the paidamt is keyed in, the current date, pd & paidsum are autoinserted--> <script> function $_(IDS) { return document.getElementById(IDS); } … Web Development http-protocol php | |
hi guys as the title which is the best in security mysql_connect() or mysqli_connect() and which one you prefer thank you for help or suggestion . | |
Can anyone help me add another folder destination to the code below. for example Categories/test, keep in mind that I want to add not repplace the location below which is Categories/Game [CODE]<?php if(!$_POST['page']) die("0"); $page = (int)$_POST['page']; if(file_exists('Categories/Game/page_'.$page.'.php')) echo file_get_contents('Categories/Game/page_'.$page.'.php'); else echo 'There is no such page!'; ?> [/CODE] Web Development first-post php | |
Hello: I'm trying to figure out what exactly is causing this error: [code]Parse error: syntax error, unexpected T_STRING in D:\Hosting\7528136\html\request_confirmation.php on line 463[/code] this is my code: [code]<?php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); //error_reporting(0); //error_reporting(E_ERROR | E_WARNING | E_PARSE); if ( isset ( $_POST['submit'] ) ) //If submit is hit { //here were … Web Development php | |
Hi All, Can someone tell my how I can make this work: I have subjects AND pages from the Database. I am in this small script deciding which link is set, a subject or a page. Also I am showing the relevant pages under each subject, by ordering the pages … Web Development php ![]() | |
Hi all, I'm not the best with coding and was wondering if some one can help me out. The page is inserting information into a database but when i added an extra section to insert i get the error [CODE] Could not find stored procedure 'Insert_PublicationsA'. Description: An unhandled exception … Web Development asp.net open-source pdf regex session | |
Hello, I'm trying to get a var from php into my jquery code, but I'm having no luck. Jquery: [CODE]$.ajax({ type : "POST", url : "sortProp.php", data : "f="+type+"&s="+filter, success : function(data){ $('#propHold').html(data); $('#propHold .prop:first').addClass('active'); alert(data.title); } }); [/CODE] Php: [CODE]$title = array("title" => "$propName"); json_encode($title);[/CODE] I can't seem to … Web Development javascript php | |
Hello, i am doing shopping cart with google checkout. but upto now i didnot integrated google checkout. so give me the sample code. it will helps me a lot. actually i integrated paypal already like below [CODE]<form name="frmpay" method="post" action="success.php"> <input type="hidden" name="business" value="" /> <input type="hidden" name="cmd" value="_xclick" /> … | |
hi i am new for webservice .i want to know where do we use webserive and tell some examples thanks Web Development asp.net | |
Hello everybody I have a question: is it possible to compile ruby files into bytecode. Does ruby have something like .pyc files? I found some discussions online about generating .exe's from ruby files, but what I want to know if it is possible to compile .rb files just like you … Web Development ruby | |
Hey, As you can see i have a function to retrieve the product description based on product code. For some reason this is refusing to return a value even though the value im entering into test is there in the table, i can see the value of the input enters … Web Development asp.net | |
I've fought this for days - can someone help? [CODE]<?php mysql_connect(localhost,root,""); mysql_select_db(oob) or die( "Unable to select database"); $query = " INSERT INTO oocust (payrec,invnum,date,time,name,name,street,state,zip,terms,fob,ordernum,dateord,datecomp,datepaid,charges,paidamt,tax,amtdue) VALUES('$payrec','$invnum','$date','$time','$name','$street','$state','$zip','$terms','$fob','$ordernum','$dateord','$datepaid','$charges','$paidamt','$tax','$amtdue')"; echo "data inserted</font><br /><br />"; $stat = mysql_query($query) or die('Query failed: ' . mysql_error()); if (isset( $_POST['payrec']) ) { $payrec=$_POST['payrec']; $invnum=$_POST['invnum']; $date=$_POST['date']; $time=$_POST['time']; $name=$_POST['name']; … | |
I checked my php.ini file and there is no ; in front of extension=php_mysql.dll or extension=php_mysqli.dll. I think the I am getting this error because my figuration File (php.ini) Path is C:\Windows. How would I change it to C:\Apache2.2\php\php.ini? Also, once I have done this do I need to recompile … | |
please help me with this.. ---how to put that in every level there will be limit in clicking the box..it will be display and will prompt game over when limit has been ended...the easy level will have less click while the difficult one will have more click.. ---and when you … Web Development html-css javascript objective-c | |
Hi Frendz, [INDENT]How to convert the direction in degrees to normal directions(North,East..) in php[/INDENT] Web Development php | |
hi..I am wanted to use the anchor() tag which is one of the url helper in codeigniter for the div. [B] Below is the code which i want to convert into the codeigniter form :[/B] [CODE] <a href="events/page/<?php echo $id; ?>"> <div class="title_row" id="<?php echo $id; ?>"> <div class="content" > … Web Development php | |
Hi Friends Pls help me, i have posted the code below, i am trying to multiply 2 text box values from thisqty and prate and final value has to be show in thisamt text box, and also i have attachment the screen shot [CODE]<form method="post" action="#" enctype="multipart/form-data" name="billing"> <table width="1000" … Web Development php | |
Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function … Web Development javascript session | |
hi, all,i having code as below and the output is in the picture below as well <?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php confirm_logged_in(); ?> <?php find_selected_item(); ?> <?php include("includes/header.php"); ?> <table id="structure"> <tr> <div class="menu"> <ul> <?php echo navigation($sel_cat, $sel_item); ?> </ul> </div> <td id="item"> <?php … | |
Hi, I'm new to php oop. In our system when creating a new user, user's role can be assigned by selecting from the role dropdown list. Here, there are two classes, one is user class, another is role class. and user class use role class which is composition relationship. I … | |
Well I am using the image functions to draw pixels on an image file using PHP. The problem is that when for instance I draw a black pixel and right next to it a white pixel and than again a black pixel the white pixel will get faded! It will … Web Development php | |
Dear Guys, i have Created a Table using Php and when i inters much data on it (Address or History of some subjects), it will make the table toooo large in size which's unneeded .. i need to manage the width of my table eeven if i enter lots of … Web Development php | |
I have a simple database with 3 columns: id, event_date, event_name I have 9 rows in the database id event_date event_name 1 2010-01-17 Food 17th 2 2010-01-17 Bar 17th 3 2010-01-17 Football 17th 4 2010-01-18 Food 18th 5 2010-01-18 Bar 18th 6 2010-01-18 Football 18th 7 2010-01-19 Food 19th 8 … Web Development php | |
I saved the link refrence in Databse like /PEDB/SupportDoc/5/PRFF or0444.pdf and used [ICODE]<a href=".$r1[10]." target=_blank>View</a>[/ICODE] to show the documents but when I click on view its not showing document because link break where space put in and show blank in explorer like /PEDB/SupportDoc/5/PRFF |
The End.