52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ishFady

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 …

Web Development php sql
Member Avatar for Bob Hensley
0
199
Member Avatar for bangla

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
Member Avatar for GliderPilot
0
103
Member Avatar for Squidge

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 …

Member Avatar for AleMonteiro
0
180
Member Avatar for kiail

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
Member Avatar for AleMonteiro
0
247
Member Avatar for crazydevelopervish

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
Member Avatar for JorgeM
0
127
Member Avatar for Riu 2009

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 …

Member Avatar for jstfsklh211
0
266
Member Avatar for coder91

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
Member Avatar for crazydevelopervish
0
108
Member Avatar for yuri1969

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
Member Avatar for yuri1969
0
347
Member Avatar for subhraakasuny

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 …

Web Development api java-jsp
Member Avatar for subhraakasuny
0
305
Member Avatar for user2412

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> &nbsp;<div id="divCalendar" style="DISPLAY: none; POSITION: absolute" > …

Web Development asp.net
Member Avatar for JorgeM
0
200
Member Avatar for jacob21

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) …

Web Development api php
Member Avatar for bokerinni
0
153
Member Avatar for deepak.fugo

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
Member Avatar for Squidge
0
217
Member Avatar for choconom

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 …

Web Development mysql php
Member Avatar for AdelineZ
0
3K
Member Avatar for ayesha789

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
Member Avatar for keshav539
0
3K
Member Avatar for Goldfinch

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
Member Avatar for Goldfinch
0
224
Member Avatar for assgar

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
Member Avatar for assgar
0
143
Member Avatar for eyeda

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
Member Avatar for eyeda
0
199
Member Avatar for Ayinainsoph

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 …

Web Development email html-css php
Member Avatar for Ayinainsoph
0
192
Member Avatar for jimmyye0h

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
Member Avatar for diafol
0
216
Member Avatar for Ayinainsoph

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> …

Web Development email html-css php
Member Avatar for Ayinainsoph
0
210
Member Avatar for ak47carbon

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
Member Avatar for veedeoo
0
209
Member Avatar for Borderline

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
Member Avatar for Borderline
0
121
Member Avatar for adishardis

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 …

Web Development json php
Member Avatar for adishardis
0
153
Member Avatar for DaveyMoyes

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 …

Web Development api mysql php
Member Avatar for cereal
0
438
Member Avatar for Ayinainsoph

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
Member Avatar for Ayinainsoph
0
84
Member Avatar for OsaMasw

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
Member Avatar for OsaMasw
0
174
Member Avatar for NardCake

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
Member Avatar for NardCake
0
10K
Member Avatar for apanimesh061

<!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
Member Avatar for diafol
0
473
Member Avatar for mpc123

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 …

Web Development html-css php
Member Avatar for AleMonteiro
0
192
Member Avatar for shahai.ali

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: …

Web Development api php xml
Member Avatar for diafol
0
259
Member Avatar for kathymac

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
Member Avatar for AleMonteiro
0
138
Member Avatar for 4everct01

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
Member Avatar for AleMonteiro
0
151
Member Avatar for Echo89

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
Member Avatar for phorce
0
308
Member Avatar for rubai

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
Member Avatar for rubai
0
203
Member Avatar for hwoarang69

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 …

Web Development image php
Member Avatar for Squidge
0
1K
Member Avatar for onofej

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 …

Web Development php sql
Member Avatar for onofej
0
232
Member Avatar for sultankhan

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
Member Avatar for urtrivedi
0
155
Member Avatar for sandjuks112

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; ?> …

Web Development html-css php
Member Avatar for diafol
0
346
Member Avatar for missy_mi

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
Member Avatar for paulinetaylor85
0
333
Member Avatar for shahai.ali

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
Member Avatar for AndreRet
0
291
Member Avatar for DEAD TERMINATOR

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. …

Web Development html-css php
Member Avatar for diafol
0
259
Member Avatar for swetha1991

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 …

Web Development apache java-jsp
Member Avatar for jalpesh_007
0
269
Member Avatar for crazydevelopervish

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
Member Avatar for crazydevelopervish
0
134
Member Avatar for DarkMonarch

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 …

Web Development php sql
Member Avatar for diafol
0
123
Member Avatar for LogicWeb

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
Member Avatar for AleMonteiro
0
198
Member Avatar for hwoarang69

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 …

Web Development php session
Member Avatar for diafol
0
188
Member Avatar for Khav

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 …

Web Development image php
Member Avatar for diafol
0
1K
Member Avatar for apanimesh061

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
Member Avatar for deceptikon
0
104
Member Avatar for riahc3

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
Member Avatar for Ezzaral
0
1K
Member Avatar for davy_yg

Hello, I wonder how to install GDChart in Windows XAMPP PHP ? Thanks.

Web Development php
Member Avatar for pritaeas
0
167

The End.