52,566 Archived Topics
Remove Filter ![]() | |
Hi I am very new php propgramming. But I have done classic asp. I have a string request, eg www.xyz.com?test=1 In my php page, I would like to read test value. On my index.php, I have this code. <? $y=$_GET["test"]; ?> But I am getting error, Undefined index: test in … | |
Hi, I am trying to do true false quetions in php. How do I score the result. Please help. ------- <form action="result.php" method="post"> <p>List of True or False questions. </p> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <input value="1" name="Question1" id="Question1" type="hidden"> <input value="2" name="NoOfResponse1" id="NoOfResponse1" type="hidden"> <tr height="35px"> <td id="quest1" style=" … Web Development php | |
Evening all. I am using nivoSlider, and have come across an issue with ow i'd like it to work. Here is a sample of the slider: http://gavdev.roundthebend.info/index2.html This is what i would like it to do: http://www.directenergypurchasing.com/ This is the HTML: <link rel="stylesheet" href="nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script … Web Development html-css javascript javascript-jquery | |
I'm making a contact form. I need it to display the label of a selected check box in a message produced in my JavaScript and validation that makes sure at least one box is checked. I thought this would be simple, but poking my eyes seems like it would suit … Web Development html-css javascript | |
I have one datalist which retrives record from database based of Customer_ID <asp:DataList ID="DataList1" runat="server" DataKeyField="Customer_ID" DataSourceID="SqlDataSource1" onupdatecommand="DataList1_UpdateCommand" oneditcommand="DataList1_EditCommand1" ondeletecommand="DataList1_DeleteCommand" oncancelcommand="DataList1_CancelCommand1"> <HeaderTemplate> <table> <tr> <th style="width: 250px"> </th> <th style="width: 400px"> Item Description </th> <th style="width: 100px"> Price </th> <th style="width: 100px"> Qty </th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Image … Web Development asp.net | |
Hi everyone, here in this code i have inserted javascript form validation and it is working as well, but when i click the submit button for empty fileds it mentions that the filed is empty but at the same time it adds the empty record.. i have checked my code … Web Development javascript javascript-jquery perl | |
I have various database tables, one that holds the options within a drop down list - each selection has a value assigned to it. One of the options is "other" which has the value -1 assigned to it. The other table takes the data from a form that the user … Web Development asp.net | |
Howdy, for instance this JSTL snippet produces following result. <a href="<c:url value="Profile"> <c:param name="username" value="${requestScope.username}"/> <c:param name="logout" value="true"/> </c:url>"> Logout </a> Result: <a href="Messages?username=abc&logout=true">Logout</a> Ofc this thing works. However, validating against XHTML 1.0 Strict ends up with: > cannot generate system identifier for general entity "logout" href="Messages?username=abc&logout=true">Logout</a> Apparently it doesn't … Web Development java-jsp | |
hi folks, i am a beginner in JSP, and i am studying headfirst servlet & JSP,but at the time of running a code from there,i have an problem there is directory structure **src/com/example/web/BeerSelect.java** and the code is package com.example.web; import com.example.model.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public … | |
hi, i made this code to pick date but it didn't work, the date was unable to select/pick. this is my code. hope anyone can help me //this is my asp code <table> <td class="style40"> Date sampling</td> <td class="style41"> <asp:TextBox ID="txtDate" runat="server" Width="78px"></asp:TextBox> <div id="divCalendar" style="DISPLAY: none; POSITION: absolute" > … Web Development asp.net | |
Hello i want to send bulk sms.In developer API this code is given. where should i use that code. WAITING FOR HELP. A sample HTTP API Call for Single Recipient would be: [url]http://www.abulksms.com/pushsms.php?username=acs&password=your_password[/url] &sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello A sample HTTP API Call for Single Recipient with Scheduling (4th January 2009 at 3:30 PM) … | |
Hi All.... I have developed a portal in mvc and i am having problem in making the links SEF... right now if i need to access controller and method i am following www.xxxxxxxx.com/index.php?rt=CONTROLLER_NAME/METHOD_NAME i want to make the above link SEF like www.xxxxxxxx.com/CONTROLLER_NAME/METHOD_NAME Below code i have it in my … Web Development apache client-server php | |
hello, i'm having trouble getting my delete selected checkbox working for a code I'm writing: the trouble is really just in the bottom half of the code after i make the while loop...i made this off of an example that i found on a site but like it was pretty … | |
Dear Sir I am using PHP Mailer for SMTP Authentication, Everything is working fine [url]http://phpmailer.worxware.com/index.php?pg=methods[/url] But AddCC is not working , I am using Windows 2003 Server, and it says this function works with SMTP Mailer , not with the Mail Mailer. [quote]AddCC($address, $name = "") string $address string $name … Web Development email engineering finance php | |
So I'm writing a script that must do certain things daily and I could set a cron job but I want to also share the script as a free download, and I want the script to just work for my users, no set-up, so I'm trying to find a way … Web Development php | |
Hello I am trying to add two records to an array so I can identify which record has a priority 1 or priority 2. This is not working, how do get this to work? <? //get data from database $query = "SELECT a.street, a.city, a.province, b.dob, b.id1_name, b.id1_value, b.id1_priority, b.id2_name, … Web Development php | |
Hello guys! I'd a problem here. Is there any way that I can download a sheet from an excel file by php? For example,I have this excel file named test.xls,and it have several sheets in it. What i want is to download only a sheet from it. Any suggestion or … Web Development php | |
How can I input coding for this table contact form that I created in dreamweaver to have dropdown option values? Here is my code: <form action="" method="post"> <table width="600" border="1" cellspacing="2" cellpadding="0"> <tr> <th width="170" scope="col"><label for="name">Name:</label></th> <th width="428" scope="col"><div align="left"> <input type="text" name="name" id="name" required="required"/> </div></th> </tr> <tr> <th … | |
Hi, Our site (www.iloho.com) works fine on FF, Chrome and Safari but on IE it seems to freeze on the home page after signing in. We've been trying to resolve this for a week and sadly there's no meaningful progress. Is anyone able to point out which areas we should … Web Development display javascript web-browser ![]() | |
How can I create a table contact form in Dreamweaver using dropdown options? I have searched everywhere and I have found hmtl coding that does not work for the insert table contact form. Here is my code: <form action="" method="post"> <table width="600" border="1" cellspacing="2" cellpadding="0"> <tr> <th width="170" scope="col"><label for="name">Name:</label></th> … | |
i am working in php a year ago ,i am workjing in custom php ,but now i want to switch on php oop , tell me best toturial of oop , Web Development php | |
![]() | I'm trying to generate a raceform site, with the results page displaying the horse, jockey and trainer as links which lead to their individual pages. I have the right effect, but it's taking a long time to load the page, which I'm assuming is due to the number of joined … Web Development php ![]() |
Hi, I've been searching now for the better part of the weekend but I can't get this to work :-/ I want to use Highcharts pie chart to display data from my mysql table. I want to count the column 'Types' occurences of the different Types in that column. Each … | |
Hi everyone, I have been trying to update a mysql database with the shortend url I get from bit.ly I have the shortend url displayed on the page, but everytime I try and update mysql with the variable $bitlylink.. instead of http://bit.ly/123abc the database is updated with http://the.full.website.url/directory/link.html How can … | |
I am trying to embed a pdf file with a text file on one of my pages. I read online that the file must be ziped which I have down. However, when I put this page on my remote server the file does not want to download and instead I … Web Development pdf | |
Hello guys, have a nice day... I've created function to test if the user is admin or not and return true or false depending on user function isitadmin($userid) { $query = mysql_query("SELECT * FROM users WHERE user_id = '". $userid ."' AND level = 1"); if (mysql_num_rows($query) > 0) { … Web Development php | |
Hello! This is the most annoying thing to me, I need redirections with Javascript often but `window.location` Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I do `window.location = "http://mywebsite.com";` Works in Firefox, but not chrome? (I don't … Web Development javascript | |
<!DOCTYPE html> <html> <head> <script type="text/javascript"> function ShowFile(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); frmEditHTML.tarHTMLText.value = oFileSystem.OpenTextFile(sFilePath.value).ReadAll(); } function SaveAfterEditing(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); var oFile = oFileSystem.CreateTextFile(frmEditHTML.filPath.value,1); oFile.WriteLine(sFilePath.value); oFile.Close(); } </script> </head> <body> <form name="frmEditHTML"> Select the HTML File you want to Edit <input type=file name="filPath" onchange="ShowFile(this)"> <textarea name="tarHTMLText" … Web Development php ![]() | |
HI I seem to have a problem with a drop down menu, the code seems to work fine and the values are showing in source code but do not show on the page???? Another issue is I dont know how to move forward after this to make a combo drop … | |
how to get the data from the following `xml`: <HostipLookupResultSet version="1.0.1" xsi:noNamespaceSchemaLocation="http://www.hostip.info/api/hostip-1.0.1.xsd"> <gml:description>This is the Hostip Lookup Service</gml:description> <gml:name>hostip</gml:name> <gml:boundedBy> <gml:Null>inapplicable</gml:Null> </gml:boundedBy> <gml:featureMember> <Hostip> <ip>182.0.0.1</ip> <gml:name>Private</gml:name> <countryName>Private</countryName> <countryAbbrev>PR</countryAbbrev> <!-- Co-ordinates are available as lng,lat --> <ipLocation> <gml:pointProperty><gml:Point srsName="http://www.abc.net/xyz/srs/epsg.xml#4326"> <gml:coordinates>68.7833,30.4</gml:coordinates> </gml:Point></gml:pointProperty> </ipLocation> </Hostip> </gml:featureMember> </HostipLookupResultSet> following is what i was trying: … ![]() | |
Hi Here is my webpage: http://dgssi.com/barton/directory.html I need to find a tooltip script that when you mouseover a store name in the right frame it will display at a specified location on the map on the left side. I am totally stuck on how to go about doing this and … Web Development javascript | |
Hey there, Im doing for a typing platform project to test the typing speed of a user. I have a SQL database (para1) which store a list of words. I use datalist and linqdatasource to display the text in a textbox (paraBox). What should i do to match the word … Web Development asp.net | |
I know I could parse the files name for the extension, but that can be faked. I know I can get the mime type, but they can also be faked. I know I could use Magic Numbers, but on some files, they are not at the top of the file. … Web Development php | |
This code reads a.txt file <?php $file_path = 'a.txt'; $file_handle = fopen($file_path, 'r'); $text_data = fread($file_handle, filesize($file_path)); print $text_data; fclose($file_handle); ?> I want to upload this text file using the code given below and want to read the uploaded file when I hit submit button. I know there is a … Web Development file-system php | |
these 3 line store image in folder. //place image in the folder $ext = pathinfo($_FILES['image_file']['name'], PATHINFO_EXTENSION); //return png,jpg,etc $image_folder_name = $user_user_name_s . '_' . time() . '.' . $ext; //create unife image name move_uploaded_file($_FILES['image_file']['tmp_name'], "IMAGE/ITEMS/$image_folder_name"); //place image in folder what is i want to print the image now. how can … | |
Please could someone check this code for me as it is giving me 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 line . Although this type of question has been ask by someone … | |
hi evry one may be this a tip task or easy but for me it is not easy i have show.php and showpost.php page in show.php i am showing my picture while in showpost.php i am showing post now if a user add picture it should be on of my … Web Development php | |
Hi! I have an image slideshow, but it shows first image in alphabetic sequence. I need it shows the fist image, that what has last uploaded in image folder, like sort by date. Sorry for my bad English. Here is the script <?php $imageDirectory = "images"; $interval = 5; ?> … ![]() | |
i am trying to do a pagination but, i cant seem to get the problem.. <? //pagination $objConnect = mysql_connect("localhost","root","") or die(mysql_error()); $objDB = mysql_select_db("custech"); $strSQL = "SELECT * FROM proposals "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 4; // Per Page $Page … Web Development php | |
hi i made a search but couldn't find a satisfied answer. any ways let me ask the question. as there are many freinds on facebook, twitter at social sites. and many other at gmail, yahoo and hotmail etc. now what i want is how to invite all the friends or … Web Development email php social-media | |
On my site, I have navigation buttons that navigate through results of a search. Basically, what I want to do is to disable certain buttons at certain times (i.e you can't click the next button if you are on the last result). I'm looking for a way to do this. … ![]() | |
i have installed tomcat and deployed axis folder in the tomcat->webapps and my .jsp and .jws files in the axis folder of webapps, while my .jws files are executing successfully and showing the wsdl code, my .jsp files are showing the error page as follows: type Exception report message description … | |
I have one form having One DataList In which i have two table one having Header Template and other having Item Template....... Code Of aspx page is as follows..... <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <HeaderTemplate> <div> <table> <tr> <td style="width:245px; text-align:center;"> Image</td> <td style="width:450px;text-align:center;"> Item Description</td> <td style="width:260px;text-align:center;"> Price</td> <td style="width:322px;text-align:center;"> … Web Development asp.net open-source session | |
i kept reading on sql injections after answering a guy on the subject and end up on this page: http://php.net/manual/en/pdo.prepared-statements.php which i think is great for optimisation and i will probably apply on this portal im working on, but ... what do you guys think about this prebuild template like … ![]() | |
Could someone please explain to me how to fix the callout issues where they do not hide again after the mouse hover is moved away from the icons on the home page? Thanks. This is part of the js code in the head section <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.slide.js"></script> … Web Development javascript | |
i now the differece between seesion and cookies. but i am not sure when one to use. when people make website like dreamincode, myspace, linkedin, etc.. wht they use. right now on my site when user log in session get started but if user hit remember me than cookie get … ![]() | |
I want to add a new feature in my present image upload script and that is automatic compression of images just like TinyPng.Basically i want a code snippet that detect 24bit PNG file and convert it to 8bit png file with full support for transparency and that also strip any … ![]() | |
I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed. What should I do ? Please help! Web Development php | |
Hello First off the server is running Windows 7 32bits. I have the following code: <?php $fp = fopen(getcwd()."/test.txt", "w"); fwrite($fp, "hello"); chmod(getcwd()."/test.txt", 0777); unlink(getcwd()."/test.txt"); fclose($fp); ?> It creates the file perfectly but afterwards I cannot delete it. Giving me this error: Warning: unlink(C:\test.txt) [function.unlink]: Permission denied in C:\writeanddel.php on … Web Development php | |
The End.