52,566 Archived Topics
Remove Filter ![]() | |
can you help me with my code, kindly give me or take a look at my codes in embedding a captcha pls...thanks...asap! <?php $submit = $_POST['register']; //form data $first = strip_tags($_POST['first']); $middle = strip_tags($_POST['middle']); $last = strip_tags($_POST['last']); $username = strip_tags($_POST['username']); $password = strip_tags($_POST['password']); $repeatpassword = strip_tags($_POST['repeatpassword']); $email = strip_tags($_POST['email']); $street … Web Development encryption php | |
Hi ; i have 2 javascript , but they dont work on same page , how can i do it ? This is the first one : <script type="text/javascript"> function configureDropDownLists(XLEW_3_5_3,XLEW_3_6_3) { var K31_213mm = new Array('90', '106'); var K32_245mm = new Array('90', '106'); var K33_338mm = new Array('90', '106'); … Web Development javascript | |
I am trying to get a query to run to update the status of the system whenever the radio button is selected without having to use submit buttons, but for some reason I cannot get it to work right, here is what I have so far but it isn't working, … Web Development javascript | |
Hey there, Why does the function compact not work for me? it is a function according to the javascript documentation. The problem is, however; if I add the brackets after it, the browser complains for some reason and it says compact is NOT a function. Also, with the function parseInt, … Web Development javascript | |
Hi There; I have a ASPX file and a code-behind cs file. I try to connect to a postgresql, perfom some database issue, and disconnect from it finally. To name a few, I print all records of database to the html file, add some new records. All these operations are … Web Development asp asp.net dataset postgresql | |
Hi I am going to new page from current page on click of a button using function : function gotonextpage() { window.location.href = "newurl"; } I also want to call another function on load of new page to set its paragraphs. I am hiding or showing paragraphs based on a … Web Development javascript | |
How do I make it so the folder isn't viewable to the outside world. I created a login page which is login.php but when you type in examplesite.com/admin it shows everything inside the folder.. How would I hide all that? - Is that a .htaccess thing? Web Development | |
Hi There, I'm busy developing a PHP / MySQL billing system for our company but can't seem to get the following working for me. I need to have 1 page that will display the extensions billing period / month for local, national and international calls and it needs to be … | |
now im doing project in asp.net by using visual studio 2008. im having some doubt in connectivity by usiny sql.So can anyone suggest some links to help me Web Development asp asp.net visual-studio | |
Hi, I am accessing a stored procedure through the Entity Framework. I have generated the access code, as well as the view. The problem is that the procedure returns an ObjectResult(Of T), and the view is expeting IEnumerable. I have tried various ways of casting the ObjectResult, but I am … Web Development | |
Hi there, Can anyone help? Why is the following code displaying "P1P2P3..." etc, instead of "P1 , P2, P3 ,.." etc. ? Thanks Paul <!--Conect to database--> <?php include "connects/patientconn.php"; ?> <?php $query = "SELECT `Patient I.D.` FROM `patient`"; $result = mysql_query($query); while($patient = mysql_fetch_assoc($result)) { $pt = implode(" , … | |
Hi. I am new in coding and sufferin from some basic issues. I've been trying to write and searching codes for writting into xls file for 3 days but could not find a suitable one. The problem is:  I created a page with textareas and submit/reset button like … Web Development php | |
Can someone pls help me ? I have an ASP.NET page with Gridview(with EDIT and Delete functionlity) and dropdownlist inside it, the Dropdownlist is well populated with the correct values but whenever I click EDIT button in the gridview the selected value in DropDownlist is set to the wrong value(to … Web Development asp.net | |
How to Bookmark website without informing user(visitor) of website? And How to set as browsers homepage without informing user? Web Development php | |
Hi there, I was reading a book on the plane and something interesting came to my mind that needs an answer. The length property of objects is a read/write value. Let's say, you've got an array that has 6 elements in it and you change its length to 10 as … Web Development javascript | |
I have done alot of OOP for long now (with C++/Java/Python etc) but world of JS is confusing. I wanted to try it by writting Ajax library (I know there are libs but this for JS OOP familiarization) and found confusing. No class keyword et cetera. What is happening? Am … Web Development javascript oop puzzle | |
Hi everyone, The function I've got works perfectly but the problem is that it displays the message quickly and then the message disappears for some reason. Am I doing something wrong?? function validateForm(){ var input0 = document.getElementById('input0').value; var input1 = document.getElementById('input1').value; var input2 = document.getElementById('input2').value; var input3 = document.getElementById('input3').value; var … Web Development javascript | |
Hi everyone, I am looking for an editor or plugin for Komodo or Eclipse that provides me with the CakePHP function autocompletion and syntax correction as well. Thank you all. Web Development php | |
Hello world, I am stumped, someone please help me with some code. I have created a purl, example: www.mydomain.com/purl However, I want people to first go to www.mydomain.com. On the homepage, I want people to enter their phonenumber (which is the purl) in a textbox. I am looking for a … Web Development php | |
I wrote the code for a jquery slider... it doesn't seem to work... can someone tell me why it doesn't work??? Could it be because jquery is installed wrong or it can't find it? Here is my code (I did this all in 1 file) <title>Slider</title> </head> <script src="jquery-1.7.2.js" type="text/javascript"></script> … Web Development html-css javascript javascript-jquery | |
A newbie here I am having an error with this code. If I logged in with correct username and password the "Sorry please log in" is appearing not the home page :( I am having a hard time to check if the user has log in or not when opening … ![]() | |
Hi guys, I read about this problem but can't figure what should I change. Can you please help? Here's my code: <?php // Title: Contact Form - Dolce Forno GB // Updated: 9/8/2012 // Author: Veronika Horvathova //Validation code if (empty($_POST) === false) { $errors = array(); //variables $name = … | |
Hi guys. I want to insert an advert after the first article on my blog. It's not a wordpress or other generic blog. I have an idea on how i should do it but it just doesn't work when i try. I use a do-while loop to call the articles. … | |
I keep getting this error message when I try to 'login' to my php member system that I'm creating. Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\acrd\includes\header.php:24) in C:\xampp\htdocs\acrd\login.php on line 21 Here is line 21 header('Location: index.php'); Here is my code. Please help! … Web Development php | |
Hey guys, Having an issue with a webpage I am building. I can get it to save the name of the image, however when I echo it out and im trying to include it as an img src tag it tells me I have a syntax error. I think this … | |
Hi Everyone, I am a beginner in PHP and would need your help with this. I get this problem: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in database.php on line 207 Here is my code: include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection var … | |
Session.Clear(); Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D); Response.Expires = -1500; Response.CacheControl = "no-cache"; //----- Second Technique : To Stop Caching of Secure Pages. Response.Cache.SetCacheability(HttpCacheability.NoCache); FormsAuthentication.SignOut(); if (Session["UserName"] == null) { Response.Redirect("login.aspx"); } Session.Clear(); | |
Hi, I have EntityDataSource1 and i am allowing user to edit Primary Key column. the column is 5 characters code (string) that user has to enter. I am using telerik Grid and inline editing. Obviously if duplicate is entered it will thow this error, but i am confused, where in … Web Development asp.net | |
I've been getting this error after I insert the require_once('login.php') I've checked both files and I don't have any empty lines after the php closing tags as is usually the case with this error This is the code [CODE]<html> <head> <title>Home</title> </head> <body> <link rel="stylesheet" type="text/css" href="style.css"/> <?php require_once('login.php'); require_once('appvars.php'); … | |
I'm trying to get a flot graph to show my jsonencoded array seen below: [["aa",71],["ab",69],["ac",66],["ad",61],["ae",79],["af",78]] In the array the first is what i want on the xaxis and the second is the corresponding value. Right now my flot graph outputs an empty chart and I'm thinking that the array need … | |
function returnnotify(){ $result = mysql_query("SELECT * FROM rentcustomer WHERE Expiredtime = CURDATE()"); $count = mysql_num_rows($result); if ($count >= 1){ echo $count; }else{ echo "0"; } } now when I run the code above ,it will prompt out this error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in … | |
Guys, I'm having a problem with the Magento Platform. Trying to build an auto-populated option with Ajax, it works flawless in a simple folder outside Magento. But with Magento, it's not populating from data.php <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("select[name='marca']").change(function(){ var optionValue = jQuery("select[name='marca']").val(); jQuery.ajax({ type: "POST", url: "data.php", data: ({marca: optionValue, … Web Development ecommerce javascript javascript-jquery | |
i want to create a folder on server using php and make it writable so tht i can upload files to it using form... can someone help me with script on making folder and making it writeable on server. thanx Web Development php | |
I've been having a bit of problems with a file. Here is the script that I'm having issues with and the exact error is as follows: Parse error: syntax error, unexpected $end in /hermes/bosweb/web168/b1683/ipg.xoizocom/pba/login/index.php on line 239 <?PHP require_once("globals.php"); $INFO = array(); $ipsclass = new ipsclass(); $ipsclass->vars = $INFO; $script … Web Development html-css javascript-jquery php session | |
I am trying to get into php object oriented programming. <?php class myClass{ public $myVar="this is demo"; public function myTextdemo(){ echo $myVar; } } $obj= new myClass; echo $obj->$myVar; ?> It says > Fatal error: Cannot access empty property on line 11 What's wrong with my code? Web Development php | |
<?php $title=$_POST["title"]; $theme=$_POST["theme"]; $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $query=mysql_query("SELECT * FROM setup WHERE id=".$_SESSION['id']); $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($num_rows > 0) { while($row = mysql_fetch_array($result)) { $_SESSION['id'] = $row['id']; $_SESSION['title']=$title['title']; $_SESSION['theme']=$theme['theme']; } { mysql_query("UPDATE setup SET title='".$title."' , theme='".$theme."'WHERE … | |
Hello, I want to display the fields that were updated. When a user edits their information, example; "FIRST NAME:John LAST NAME: Stih Update to:UPDATE users SET firstname = '$firstname', lastname = '$lastname' FIRST NAME: John LAST NAME: Smith I would want it to print "You updated your Last name" | |
hello,I Need RSA system code with javascript ,i heared there're some rsa libraries in the internet , i looked for it , and i found some thing but it's not what i look for , i look for library applied (PKCS #1 v2.1) or (PKCS 12 v1.0),i have project and … Web Development javascript | |
Tons of errors. Keep getting parse errors....line 45, 59...every time I get one, more pop up...please help. <?php session_start(); //ini_set( "memory_limit", "128M" ); //error_reporting(5); // added in by jaime to insure they are logged into the admin if(!$_SESSION["loginOK"]){ $err=1; $message="You must log in first"; exit; } if($_REQUEST["button"]=="Return to Main Menu"){ … Web Development legal operating-system php | |
Hello, The following script writes to a file include.php <?php $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start=""; $Fnm = "./include.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file != 'index.htm')) { $result="{\nlevels: [\n{ file: \"$path2$file\" }\n],\n\ntitle: \"$file\"\n},\n"; fwrite($inF,$result); } … Web Development file-system image php | |
Ok, I am very new at php coding but I thought I would give it a shot. I am building a site for a friend of mine for his video game team. The problem I am having is they want an application form so I made the form but I … Web Development php | |
![]() | OK I've got another interview! Thanks to pritaes for the links etc. Never thought I might be doing a programming job but hey, it's a laugh I guess. I have a few questions I may want to ask about OOP in version 5, but also codeigniter and joomola... So learning … Web Development oop php php-codeigniter |
![]() | hello i got alexa charts links from internet today <!--Daily Traffic Rank Trend--> <script language="JavaScript" type="text/javascript" src="http://xsltcache.alexa.com/traffic_graph/js/g/b/6m?&u=http%3A%2F%2Fwww.yoursite.com+++++"></script> <!--Daily Traffic Rank Trend--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=t&b=ffffff&r=1m&u=yoursite.com&"> <!--Daily Reach in Percent--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=r&b=ffffff&r=1m&u=yoursite.com&"> <!--Daily Page Views--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=p&b=ffffff&r=1m&u=yoursite.com&"> i want to insert them in html form with few button for every chart and want … Web Development html-amp image javascript |
Hello, I created a site where you have to log in and it begins a session. I wanted to make a stay logged in feature so I started using cookies. I made it so if there was no session then check for cookies. My site also sends out emails with … Web Development php session web-browser | |
Hello dear members i am running an online shopping project past few days my website not working very good it is too slow for loading,i hosted it on a dedicated windows server, and also have a very good internet speed but still have problem loading the web site and also … Web Development asp.net ecommerce windows-server | |
Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple … | |
I have a configuration table with one row per configuration item (id,category,name,value,description,comment). My objective is to create a single edit page that shows all, or a subset, of these values and allows me to edit them. I could probably create a page with a separate form and submit button for … Web Development php | |
Dear members, I'm in serious problem. I need a tool which can get all content information of a website and at the end these information will produce a CSV. That CSV will be imported in another database...can anyone help me regarding this issue.. Web Development php |
The End.