52,566 Archived Topics
Remove Filter ![]() | |
hi all i want to do is hide links when the user is not login in. i thought i could do it this way but it gave me a error [CODE] <?php if $_SESSION['MM_Username'] isset { echo 'members area'; // i would put a link here } else { echo … Web Development php | |
Hi! I am trying to make an element shake, and I have [I]tried[/I] to make a function in JavaScript, but it won't work. Here is the test page, used only for testing. It is the [I]Genious test[/I] div that I want to shake. Here is the code: [CODE] function Shake(Pow){ … Web Development javascript | |
Hello all, I'm pretty new to PHP & SQL. I am having some trouble with a web voting page I'm creating. I have a PHP loop which is displaying data from SQL table A. Beside it, a small text box linked to SQL table B to allow users assign numeric … ![]() | |
hello everyone., i m new to asp.net. i am using fileupload control in my project. i want the complete file path...in IE i am getting the complete file path but not in Mozilla....in mozilla i am getting the file name only i.e. myfile.xls.......but i want the complete file path i.e. … Web Development asp.net file-system | |
i want to convert string into hexdecimal value.. Like 'Hi' into 00680069 [code=php]<?php function ascii2hex($ascii) { $hex = ''; for ($i = 0; $i < strlen($ascii); $i++) { $byte = strtoupper(dechex(ord($ascii{$i}))); $byte = str_repeat('0', 2 - strlen($byte)).$byte; $hex.=$byte." "; } return $hex; } //echo ascii2hex('he'); echo dechex(ord('hello')); ?>[/code] I got … Web Development php | |
i have a webpage wherein it has two frames in it. now, i want to transfer the data coming from FRAME A to FRAME B. now, i thought of using a session, but it does not work, what i want is that when i click the button in FRAME A, … | |
hi, i'm back again to ask few question i have a problem on my online reservation system. here's my code [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $rno = $_POST['rno']; $in = $_POST['ADate']; $out = $_POST['AnotherDate']; $nor = $_POST['noofrooms']; $rtype = … Web Development php | |
This is a continuation of the [url="http://www.daniweb.com/tutorials/tutorial19303.html"]Updated: ASP.NET Login Page Tutorial[/url]. This tutorial will demonstrate how to create a registration page for new users to your site. This registration page will utilize the same principles used in the Login Page Tutorial, so this should be no more difficult to do … Web Development asp asp.net first-post javascript microsoft sql visual-basic visual-studio web-server | |
Hello All, I currently have pager.ascx control which i am using to display 12 items per page. i am using "gid" constant string to set the number of pages. "gid" is defined in my base class called myPage.cs as follows [CODE]public class myPage : Page { #region constants [B]protected const … Web Development asp.net | |
Hello All, i am currently using Google Analytics to collects stats about my site ( my site is created in ASP.NET 2.0 and C#). i have asp:imagebutton called "Confirm Order". i want to track the clicking of this button. the code for this button is as follows: [CODE]void ibConfirm_Click( object … Web Development asp asp.net google http-protocol | |
hi all, i have to create web form creator as shown in below link.... how to make it i need idea how to implement this [URL="http://www.phpform.org"]http://www.phpform.org[/URL] Web Development php | |
How do I code a function that uses external variables? For example? I have an upload script that I am using repeatedly through a few pages. I'd like to make my code more efficient and just define the upload script as a function and call it every time I need … Web Development php | |
Dear All, I am trying to resize a page using jQuery but its not working for whole page it just resizes itself rather then whole content of website, anyone can please help me. Here is the code that I am using [CODE] <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE … Web Development asp.net cms html-css javascript-jquery xml | |
Hye, I have a select box with me and whenever I use a submit button only the selected value in the select box is posted. I am making a questionnaire so, I should be able to have all the entered options to be posted and not just the one on … Web Development first-post php | |
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example … Web Development javascript php | |
Hey Guys, I'm using Authorize.net as my payment processor. When I try to make a transaction it is not working properly because of the MD5Hash. I set up a variable and it is not working, in the authnet manual it says "if the MD5 Hash value configured by the merchant … | |
[code] if( $_SESSION['user_id'] <> 1) { $ref = $_SERVER['HTTP_REFERER']; header( 'refresh: 5; url='.$ref); echo $_SESSION['user_id']; // <----- echoes '1' echo "<h2>Some feature is currently unavailable.</h2>You will be redirected to $ref in 5 seconds"; die; } [/code] I've written this a hundred different ways and it still redirects even though the … Web Development php | |
i hate my life because I do not know what Im doing im trying to leave a cookie on the users pc from the URL. THIS IS THE URL (generated by infusionsoft) http://www.get-financed.org/rtest/2/?Contact0Email=pleasegodwork@jjsjs.com&contactId=40939 The URL contains something called contactId and im using this code // set the cookies setcookie("cookie[three]", "<?=$_GET['contactId']?>"); … Web Development php | |
i need to make a paragraph of text identified by a <div> grow in size when the user moves their mouse if that portion of text. I Guess it needs to use onMouseOver and getElementById but i not sure what else is needed, i have trawled the internet for the … Web Development html-css javascript | |
Does anyone know if it is possible to format the Excel spreadsheet (dynamically created using ColdFusion and pulling from a MySQL database) to have the Excel file automatically set to landscape, rather than portrait for printing. My client wants that Excel spreadsheet formatted for him. I have the borders and … Web Development coldfusion | |
I have this code to validate part of a file upload: [CODE]if (!($fileExt == 'doc' || $fileExt == 'docx' || $fileExt == 'pdf')) { $error = 'The file does not meet the file type requirments. Only Microsoft Document and PDF files are allowed.'; $etype = '1'; include ('inc/error.php'); }[/CODE] Is … | |
Hi, I need to upload pdf file using php and store that pdf files in certain path.The pdf which is under Acrobat Distiller is uploading successfully.But the pdf files which is under AFPL Ghostscript is not uploaded. coding: echo $_FILES['file']['type']; if($_FILES['file']['type']=="application/pdf") { if(file_exists("$filepath/upload/$basename")) { //file already exists return false; } … Web Development file-system pdf php | |
hi everyone i m completely fed up to solve dis prob.... i checked my code so many times but i cant find where is my mistake...... plz help me out..................... I am selecting records from diff tables......my select query is correct and after dat m inserted new record and dat … Web Development php | |
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form and submit i get this.. test.php?search=example&submit=search how do i get all together in the url? like this [url]http://test.php?w=$sw&h=$sh&search=example&submit=search[/url] i even tried this [code] <form action="<?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&"; echo $theurl; … Web Development php | |
Hello everybody this is my first post. I have a web page in php that allow the users to enter a value from three radio buttons. The problem is, i want to allow the users too change their selection on the edit page but first their selection has to be … Web Development php | |
Hi guys I was hoping you could help:'(, I have created a web page where by the number of records is about 40. But put on paging on my page with the use of Dream weaver. The problem I have is that yes it does display 5 At a time … | |
hi, i have tried to use gd graph, it works, however, whenever i will input a message, it does not appear. if u will display the graph and the message in a separate webpage, it will appear. now, my question is that, is it possible to merge the graph and … Web Development php | |
i want to say this rule by javascript in asp.net page: for any controls in page if control[i].text=" " then set control[i].text="" (for page textbox controls only) how can i implement this in javascript language in asp.net form? Web Development asp asp.net javascript | |
Hi, I've got a "contact us" form on my website and naturally i'm trying to guard against sql injection/hacking The body of the text gets run through the below function, however this means i end up with How's it going = How's it going Can someone tell me which part … Web Development php | |
Hello sir, I have problem in getting values of textbox which in .ascx file (user control). at aspx file(the file at which control is added). code is as below. code in .ascx file [CODE]<%@ Control Language="C#" AutoEventWireup="true" CodeFile="attachfile.ascx.cs" Inherits="attachfile" %> <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox> <br /> [/CODE] code in .ascx.cs … Web Development asp.net file-system web-server xml | |
Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE] Web Development javascript | |
Hey ppl, I have a form with the start date and end date fields... I want to check if bothe fields are filled and also to check if the start date is earlier than the end date... [CODE] <form id="form1" name="form1" method="post" action="get2.php" onSubmit="return validateform(this)"> Checking code... <script language="javascript"> <!-- … Web Development php | |
Hello Friends, i am having problem in pagination of my php website i written the code like this its working for first page good from second page onwards it showing all the results in a single page [code] <?php if((!defined('BASEPATH'))) exit('No direct script access allowed');?> <!-- HEADER --> <? $this->load->includes('header');?> … Web Development php | |
Hi, I need to change the image to another image using mouse click... this is the code i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg". pls anyone help me to correct this … Web Development html-css image javascript | |
i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol … | |
i'm trying to simplify the url, how do i do this within the code below.. if width & height = 1024 & 768 and declare that as variable "1". if width & height = 1360 & 768 and declare that as variable "2". then the url would be test.php?s=1 for … Web Development javascript | |
protected void Button1_Click(object sender, EventArgs e) { MailMessage message = new MailMessage(); message.From = new MailAddress(YourEmail.Text.ToString()); message.To.Add(new MailAddress("purohit.mith@gmail.com")); message.Subject = "Message via mith from " + YourName.Text.ToString(); message.Body = Comments.Text.ToString(); SmtpClient client = new SmtpClient(); client.Host = "203.92.50.112"; client.Send(message); } // this is what i used to send the email … Web Development asp.net client-server | |
Hi..this code is not working..the error was [ICODE]while ($row = mysql_fetch_array($sql)[/ICODE] but i know it was correct query.. [ICODE]search.php[/ICODE] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql … Web Development php | |
I am trying to call a php script from a crontab sh script... I can get it to work if I hardcode each file, but I want to pass a variable to a single php file either from hardcoded calls in the sh script, or even better, by looping through … | |
I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country … Web Development html-css javascript mysql php | |
hey yall i just started learning php too....but i have a problem with viewing my php files..i am currrently using easyphp and am not sure how am supposed to use it...i use dreamweaver to edit my php files but i dont get to see the output.. so please i need … Web Development php ![]() | |
[CODE]$query = "INSERT INTO update_feedback (updateID,comment,timestamp) VALUES ('$updateID','$comment',NOW())"; $result = mysqli_query($dbcon,$result) or die('Error saving feedback into database. ' .mysqli_error($dbcon));[/CODE] Gives me this error: [QUOTE]Error saving feedback into database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax … | |
pls i really need someone who can put me through php.i am really intrested in the language and just in need of someone to help me... Web Development php | |
i am adding products. in that i have multiple select categorys option is there. i am selecting multiple categories and imploading that and storing categorys in database product table using categorys ids. now i am fetching with single catagory id. how to call (in_array) for that query? [CODE]"select * from … Web Development php ![]() | |
Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back … Web Development first-post javascript php | |
Hi all, I want to say first of all that I'm a beginner with jsp. Now I explain my issue: I have a page (called A) where I want to execute some code if user come from page B and other code if user came from page C. How could … Web Development java-jsp | |
hello, i want to arrange variables in array from foreach loop like this [ICODE] foreach($arr as $array){ $variable['first'] = $array['im']; //first record from im column in a table $variable['second']= $array['im']; //2nd record from im column in a table } echo $variable['first']; echo $variable['second']; [/ICODE] the purpose is to make the … Web Development php | |
Hi all. I am wondering how to handle e commerce payment on my creating web. It can't redirect to such as Paypal or moneybookers.com etc, payment should be start at my web form and finish on my web. Can it be? How to make it? It should accept international visa … |
The End.