199,114 Archived Topics
Remove Filter ![]() | |
Here is the code for my form: <form action = "index.php" method="post"> <!--the form is being submitted to the same page--> <button class="btn" name="button" onClick="submit()">Yes</button> <button class="btn btn-primary active" name="button" onClick="submit()">No</button> </form> And on the top of my index.php I have the following: <?php $refresh = $_POST['button']; ?> When I … | |
I want to call a script page in php where the referral link is visible when you mouse over the image, something like this: http //mysite com/phpscript?d=www.site.com/thread/217.html (I don't know php incredibly well yet - so if that doesn't look right please let me know) And then based on whatever … | |
I have a jtab that contains 3 items: a jtextfield that the user will enter a integer value(1-100),and press a jbutton which takes that value and thru a series of if tests generate a text response in a jtext area. example: Input = 1 Output = My Dog has fleas. … | |
Is main(); function included as loop statement? for example i have a program with subprograms then if I finished a subprogram i will use main(); function to go back from the main program. is that considered as loop? thanks!! | |
Hi, first i need to download a good compiler, what can you recommend me? I always used dev-c++ but in windows 8 don't work, it gives this error: "gcc.exe: Internal error: Aborted (program collect2)". Well, i need to get content from json files to make a sql sentence, insert into. … | |
Hi all, I have code as follows, to fetch rows from mysql table. Table it fetches is given below. I want to access now each cell in the table, how do I do that? For e.g, I want to multiply Rank for the Job "transform Brand image by 82% and … | |
HI Guys; How to get the machine address using php | |
2. Write a custom error handling JavaScript function called processErrors that handles a custom error by assigning it to the onerror event handler. Include the block of JavaScript statements needed to pass the arguments sent by the JavaScript interpreter into the processErrors function, send an alert message with the agreements, … | |
hey, i've been trying to insert the element in the linked list, but I don't understand why the element is inserted at some other position i.e. it is not inserted at the position which i pass. is there any error in the insert function? template <class T> void insert ( … | |
Hello, I would like to know if anybody could help me with this program that im trying. I have a text file with data inside and i want to display one data line per time with 2 sec delay. The data should continue show infinitely. This is what i have … | |
I send out a newsletter using a PHP based mailing list manager installed on my server, which uses phpmailer to send. For most users that I send to, they get the newsletter fine, but users who have email accounts with cox.net , windstream.net , roadrunner.com, rr.com , earthlink.net seem to … | |
** # is it possible to creat threads in c-programming? # ** ## Sub-Heading Here ## yes,then how? no, then why not? | |
Just got an entry level web developer position the city. It starts in 2 weeks. I would love some tips on how to effectively prepare. I'm an IT major not computer science, so my classes focused more on systems and databases rather than programming. I had a really good interview … | |
I want to creat a blog for my site, which is hosted on windows server. Can we host a wordpress site or blog on windows. | |
Hey guys, Im making a program that will be used by graffiti collectors. There will need to be an import picture button l which will import a picture from your selected drive, and there will also be a take picture button, which i am having trouble with. Any help would … | |
Here is my form.html <html> <head> <script type="text/javascript"> function ajax() { var aj; if(window.XMLHttpRequest) { aj = new XMLHttpRequest(); } else { aj = new ActiveXObject("Microsoft.XMLHTTP"); } aj.onreadystate = function() { if(aj.ready == 4) { document.getElementById("text").innerHTML = aj.responseText; } }; var param = document.forms["fo"]["text"].value; aj.open("GET", "try.php" , true); aj.send(); } … | |
Hi Friends, I have written one HTML page in which i have on button with window.open function. so it opens in new tab. but i want it to open in it frame in that HTML page. Is it possible any how ? Or is there other way ? **Thanks** | |
hi all, i am working on small RMS and got problem to print receipt using pos printer. the expected out put is like that. 1. XYZ Ltd 2. London, Uk 3. 4. 5. 6. Transaction #: 100 7. Date: 11/12/2008 Time: 09:10:10 8. Cashier: Fred 9. 10. Item Qty Unit … | |
Hi there, I’m fairly new a c++ and am having trouble figuring out how to use a returned function variable. Here’s my code #include "stdafx.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <algorithm> #include <iterator> using namespace std; std::string OMPS (char const* path) { … | |
I am beginner with C# language & currently using WROX's beginning Visual C# 2010 But sometimes it is hard to understand. Is there any book that can help me? | |
Hi, I can't figure how to detect collision between Ellipse2D and Rectangle2D. I have tried intersects and contains methods with and without getBounds and getBounds2D methods but nothing works. Here is some code, ball and bat are overlapped. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.Toolkit; … | |
Hi Guys I have a number and I only want to display the first 3 digits could you please help. Thanks <cfset mytour=885879><cfoutput>#Left(#mytour#, 3)#</cfoutput> How can I make the result into a global variable to use later. Forgive me am a noob to coldfusion | |
Hi all! This is w.r.t the thread [How to make my C++ program executable on other computers](http://www.daniweb.com/software-development/cpp/threads/431194/how-to-make-my-c-program-executable-on-other-computers) I didn't want to continue the discussion there, so i created the new thread. I had faced the same problems in the past. I needed some clarification on the following: 1)`The option shown … | |
Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- … | |
Hi all, I'm currently trying to use an inherited excel macro. I did not write it (and would not have the skills to write VB either) But i've been getting a number of errors while running this code. I've got through a lot of them but now can't figure this … | |
Good day! I have this class for Players: #include<iostream> using namespace std; class Players { public: char Level[2]; float SetPower(); }; Players Pl, float Players::SetPower() { switch(Pl.Level) { case '1': return 5000; break; ......... } } int main() { Pl.Level='1'; cout<<"Your current Power is: "<<Pl.SetPower()<<endl; system("pause"); return 0; } Now … | |
I created a program that : 1)write by keyboard a number A of 5 number digits 2)write all the combinations ( 2 digit ) using digits of number A 3)order the combinations MY PROGRAM DO ALL THIS , but i don't know how to limit the combinations from 4 digits … | |
I have a function and want to use time.sleep(2) everytime an attack happens, but what ends up happening is the time.sleep(2) will work for the first player and enemy attack, then the program will print the rest of the attacks instantly. Does anyone know what I'm doing wrong? def attack(player, … | |
Hello everyone. I am new in coding and db so i am facing a problem regarding of fetching the data from 3 tables. Please suggest or help me. Thanks in advance. I was writing a query to fetch data from 4 tables i.e pat_table, test_table, doc_table, emp_table. In pat_table there … | |
Please can someone show me how to retrieve database tables and add them as items to my JComboBox?.i have this app that i'm creating and it has a database which contains tables with their names and i want to add them as items into my JComboBox to aid file insertion … | |
how to edit textbox in visual c++ 2010,windows form application? please any one give me a perfect solution by details and it will be bater if you provode me tutorial link. thanks Rishad1418 [email snipped] | |
Hi, I have a HTML page in one variable. I need build a mehod that will extract a tag content (dif extract_tag(self, tag_name)). For example, given webpage: <div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <!-- content --> <div id="content" class="mw-body"> <a id="top"></a> <div id="mw-js-message" style="display:none;"></div> <!-- sitenotice --> <div id="siteNotice"><!-- centralNotice … | |
I have written a program which allows agents of a call centre the ability to access a database (ms access) containing names of solicitors to allocate to. the database is stored centrally and i need a way to update the local dataset on the agents machine when a change is … | |
Hi Guys, I am creating an application that will send and receive a data from a phone application like a native android application will do. (e.g. A Client-Server relationship). Can anyone suggests or tell me how does an android phone(we are using PhoneGap) which is our client side sends a … | |
hi guys, hope this is in the right place? basically im trying to find places to sell php scripts. ive found a couple, but they all want at least 30% of my sales which is ABSOLUTELY PATHETIC!!! id b upset at 10% but im prepared to pay that if the … | |
Hey there! I just want some hints for some program I'm trying to make. Say we have a 1GB file full of 0 and 1. What I want to do is to find the patterns of them and rank them. It wouldn't seem so complex if I had to deal … | |
hi all , i now working on new project that have a class for table includes the add , delete , and update function how i can call them in vb??? this one of the class Imports System.Data Imports System.Data.SqlClient Public Class BOQSectionsAndParts Private _BOQSectionsAndParts_ID as Integer = 0 Private … | |
Hi, im just doing some past exam papers for an exam I've got coming up and im struggling with Java generics, i cant seem to find any good examples to help me out. I've found small snippets of code but i really need a larger piece of code shown before … | |
public class QueueImpl<E extends Comparable<E>> { private int count; private class Node { private E info; Node next; } Node front; Node rear; public E peekMaximum() { Node temp = new Node(); temp = front; Node max = new Node(); max = temp; while(temp!=null) { System.out.println(temp.info); //if(temp.info>max) if((temp).compareTo(max))>0) // getting … | |
Hi there I have a question about pointers, i have a functions that takes a path to a txt file, extracts whats in it into an array and returns the array. As i understand it you can't actually pass the array, you have to return the pointer to the array … | |
I have a jQuery tabs slider that auto rotates and depending on the slide it will adjust the background of the `<div>` element it is in. Auto rotate goes fine, the correct background is loaded, but when I manually click the tabs, it doesn't take the correct values. It's almost … | |
Hey :) First off this might actually be a network problem! But im also uncertain of the java code and how networking works in java. The program is basically just to transfer a file if that matters! So this is my code for setting up the connections: Server: //connection(s) private … | |
I am trying to pipe username and password (not to pass through command line for safety purposes) from one python script to another python script with some arguments. I was successful in perl implementing the above like this program - perl1: open(INPUT,"|perl my.pl $arg1 $arg2") or die "cant fork $!"; … | |
Hi, i don't know what happen in the code. I have this JScript: changeLanguage: function(target) { var rel = target.split('-'), region = rel[3], game = rel[1], client = rel[2], lang = rel[4], ver = rel[1], //not sure... name = $('#' + target).text(), id = game + '-' + client + … | |
![]() | Hi all, I've got a code here, as the title says it is a sudoku puzzle. It can create only one puzzle which is there hard coded. Now, the problem is how to add another puzzle? Or maybe I can turn this into a random generated puzzle which is hard … |
hallo i am a dummy in PHP and i would really love to leran everything thereis about it. i need guidance o how to start and become a professional. i am requesing for anyone to guide me through and be my mentor through the exercise. i am readily available at … | |
Hey Everybody, Allright my setting is like this: I created a derived MVC program using C++ and QT on Visual Studio 2008, that sends multiple instructions to our ERP system through an external program... On each command posted this way the user application needs to wait for a return string … | |
Hi all, I'm trying to get the list of files in a directory using WINAPI functions FindFirstFile and FindNextFile. The problem is that WIN32_FIND_DATA.cFileName returns only the first character of the file name. This is a console application created in Microsoft Visual C# 2008 Express Edition. Here is the code. … | |
Please i dont know how to bubble sort using the command buttons to swap textboxes from 1- 5. |
The End.