199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Blueie

Hello I have this line of VB.NET that redirects the user to a 'Thank you' page (thankyou.aspx) after submitting a contact form. Dim target = String.Format("~/thankyou.aspx?yourname={0}", Name) 'Redirect user to thank you page Response.Redirect(target, True) The contact form itself has this: <p><span>Name</span><input class="contact" type="text" name="your_name" /></p> while in my aspx.vb …

Member Avatar for Blueie
0
158
Member Avatar for Dragos_1

#include <iostream> #include <fstream> #include <cstring> using namespace std; int va[20][2],i,j,iesire,intrare,st[21],as,ev,k=2,timp,mint=10000,d=0,t=0; float distanta,mind=10000; char comune[65][25]; struct intr { int t; float d; }v[65][65]; void init(int k,int st[21]) { st[k]=0; } void succesor(int k,int &as,int st[21]) { if(st[k]<65&&k<20) { st[k]++; as=1; } else { as=0; } } void valid(int k,int &ev,intr …

Member Avatar for Schol-R-LEA
0
756
Member Avatar for brandon66

Im trying to implement queue with a linked list i think i have the enqueue function correct but im having problems with the dequeue. I can get it to delete the first number but then the rest of the list is empty can someone point me in the right direction? …

Member Avatar for brandon66
0
247
Member Avatar for geolotry

Hi all I have been struggling with this program for quite awhile. I can't seem to get the PRINTFREE and PRINTMATCH commands to work right. I seen a similar problem on here but I am still grasping at straws. Any help would be greatly appreciated. Here is the scenario for …

Member Avatar for Christopher_11
0
341
Member Avatar for Saeed_3

consider a vector R whose coordinates xyz are given by R1,R2 AND R3.the length of the vector R is calculated as R len=squareroot of R1Squared+R2squared+R3squared.write a c++ program to prompt the user for the vector coordinates values and calculate and display the vector R length.please help me with the code …

Member Avatar for Schol-R-LEA
0
380
Member Avatar for divinity02

hi guys j is there a way on how to analyze java snippet of codes, like for loops, while loop to check to see what will be the result of it, whether it would run, what results, or if it would give you any kind of syntax error, run time …

Member Avatar for JamesCherrill
0
117
Member Avatar for Mayukh_1

I have these files.. **str.h** #ifndef _str_h_ #define _str_h_ struct STRSTR { char* MainStr; char* SubStr; }; char* str_str(int, int, struct STRSTR* sample); void init(char*, struct STRSTR* sample); #endif /* _str_h_ */ **str.c** #include "str.h" #include <stdio.h> void init(char* str, struct STRSTR* sample){ sample->MainStr = str; } char* str_str(int index, …

Member Avatar for Mayukh_1
0
314
Member Avatar for fizzah zahid
Member Avatar for terriblecoder

Hi so I am suppose to write/fix this code up so it produces a monthly bill for a store. This is what I have so far. I know its suppose to have functions but im just doing it first this way because i find it easier.I think theres something wrong …

Member Avatar for Schol-R-LEA
0
297
Member Avatar for sandeep.tete

I have a javascript code showing current time, which i want to store in php variable. The store value in php will then be used in sending through form to an email id. I just want to store the value in php. document.getElementById('time') Any Help/ideas appreciated. <script type="text/javascript"> <!-- function …

Member Avatar for JorgeM
0
6K
Member Avatar for learningjav

Create a class to represent a Book. A Book should have a title, author, edition, and number of pages. Choose the most appropriate types for each of these and make them private. Provide set and get methods for each of the instance variables. Also, create a toString() method that returns …

Member Avatar for learningjav
0
86
Member Avatar for Brilliant_1

<?php ob_start(); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); include "admin/include/config.php"; include "temp_config.php"; //session_start(); $tmp = $_SESSION['tmp_id']; $cartsql = mysql_query("SELECT * FROM `cart` WHERE `temp_id` = '$tmp'"); $cartnum = mysql_num_rows($cartsql); // For Check the cart is empty or not... ob_end_flush(); ?> <!DOCtype html> <html lang="en"> <head> …

Member Avatar for DaveAmour
0
297
Member Avatar for DGULLIVER

Hi, I want to create a SP in mySQL to insert records and return the Primary Key. But when I try and create the SP I get error: mysql said #1064, You have an error in your SQL Syntax, Check the manual that corresponds to your MySSQL server version for …

Member Avatar for pritaeas
0
6K
Member Avatar for kuljit

how to translate the message communication with the help of a translator like google translate api

Member Avatar for kuljit
0
75
Member Avatar for jj.dcruz

I'm using pure php for the moment and I'm having a problem on what to do next using the command `DESCRIBE` calls all the header of my database but I cannot call those datas under the headers I have to manually put it. What I want to know is: * …

Member Avatar for jj.dcruz
0
313
Member Avatar for showman13

Good Morning all, Hopefully someone can head me in the right direction. I know nothing about perl or cgi but have a script that I purchased and had modified by a programmer half way around the world. He uploaded it to my development domain and the script works just fine... …

Member Avatar for 2teez
0
335
Member Avatar for digital-ether

Here is a PHP class written for PHP4 and PHP5 that will validate email addresses by querying the SMTP (Simple Mail Transfer Protocol) server. This is meant to complement validation of the syntax of the email address, which should be used before validating the email via SMTP, which is more …

Member Avatar for lps
0
4K
Member Avatar for showman13

Good Morning All, I've worn myself out looking for the solution to integrating MailChimp APIs into my PHP scripts. Is there anyone in here that is familiar with doing that? I have the simple part done, where people can subscribe to a Newsletter to get more info, in which case …

Member Avatar for showman13
0
711
Member Avatar for KateyB

Okay, this is my first time posting here, so if I'm doing something wrong please let me know. Here's my question: I've got a page full of pets (this is for an online game). The client wants to be able to select multiple pets at once and change the group …

Member Avatar for lps
0
251
Member Avatar for furalise

Hi again everybody. I know there are some references to this kind of thing around the web but none of them are simple enough for me to understand. In my code below, I am trying to initialize a function pointer with a class member function but I'm not sure I …

Member Avatar for furalise
0
504
Member Avatar for chester1908

Hello, i was wondering if i could get an opinion on the following code as it is giving me a headache: int counter = 498853097; int k = 0; clock_t start, end; float seconds1,seconds2; start = clock(); for (int i = 0; i < counter; i++) { k++; } end …

Member Avatar for chester1908
0
293
Member Avatar for AJN25

Hi guys I am creating a basic application and have set up a database in which i can pull data but im struggling to figure out how to split a listbox into 2 columns, any ideas would be much appreciated Thanks in advance Andy

Member Avatar for AJN25
0
367
Member Avatar for Moon15

I have a text file No.,A ,B ,C ,D ,E ,F ,G 1 ,10,11,13,15,10,15,14 2 ,12,10,15,14,9 ,19,12 . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. n ,..,..,..,..,..,..,.. I would like to sum just A+B+C+D+E+F+G Then put them in another text file No. Sum 1, 88 2, …

Member Avatar for djjeavons
0
336
Member Avatar for JOHN-shirley

Please can someone help me and show me where i am going wrong ? The code below is not an assignment or homework it is something i am tryigng to do for work. The code scans a text file ( attached ) and stores 10 x 5 digit ints into …

Member Avatar for Moschops
0
177
Member Avatar for Khan2014

trying to display four images in row. html code` <section class ="selection-meals"> <ul class="meal-showcase"> <li> <figure class="meal-photo"> <img src="resources/css/imgs/1.jpg" alt="meal1"> </figure> </li> <li> <figure class="meal-photo"> <img src="resources/css/imgs/2.jpg" alt="meal2"> </figure> </li> <li> <figure class="meal-photo"> <img src="resources/css/imgs/3.jpg" alt="meal3"> </figure> </li> <li> <figure class="meal-photo"> <img src="resources/css/imgs/4.jpg" alt="meal4"> </figure> </li> </ul> <ul class="meal-showcase"> <li> …

Member Avatar for Khan2014
0
2K
Member Avatar for Linh_1

can someone show me how to do this please? I am new to programming languge? here is the requirement? Thanks. Create a database table with 10 records with the following fields: Lastname, FirstName, Phone Number, Street Address, City, State, Zipcode. The table name is: “User Info”. Please create the table …

Member Avatar for Aslam Mansoor
0
344
Member Avatar for Papa_Don

Hi Group, I attempting to save a file to a specific folder that is begins with the hotels property number. Currently I've manually listed the properties complete folder name in a text file. This is proving to be a management problem that needs to be fixed. The code I'm using …

Member Avatar for Papa_Don
0
288
Member Avatar for Aaron_JY

I know it's something I'm doing wrong, but I can't seem to figure out what it is. The console reads the text you input and replies to what you have sent with a message set specifically for your input message. When I input "hello", it replied with "Hello! How are …

Member Avatar for muhammads744
0
743
Member Avatar for Sana_5
Member Avatar for daz_omega

Hi, I have an unusual problem, I am developing within a wordpress environment and using a plugin. To futureproof the plugin I do not want to edit the code that is generated to include HTML tags, because when the plugin is updated it will overwrite my change. I am looking …

Member Avatar for gentlemedia
0
399
Member Avatar for rpv_sen

Hi I purchased windows hosting for php from Godaddy. But my .htaccess is not support in windows, so i have to use web.config for my redirection and hidding the filename extension. Can anyone please help me to fix the issue.

Member Avatar for rpv_sen
0
10K
Member Avatar for Madhu_5

Plz tell step step procedure to play music in my Microsoft visual studio 2005 for my opengl projects

Member Avatar for djjeavons
0
220
Member Avatar for andruluchko

Hello, I try to rename file or directory using JFileChooser() and JButton(). But it gives me a NullPointer exeption. I have FileChooser, Button and TextField where I write new name for my file or directory. Can you say where I go wrong and how to solve this problem. // button …

Member Avatar for mKorbel
0
1K
Member Avatar for Gurjit_1

I know many if us are laughing seeing this question , but if i have taken some floating point value and I want if the result is integer it should have some decimal point answer eg - 1 can be integer number I want 1.0 to appear in my result. …

Member Avatar for DavidB
0
393
Member Avatar for mrkm1188

I have a chart that is being populated from a query in the vb code but when the chart is displayed there is an extra x-axis grid tick. How do i get the x-axis grid to only display the number of items being returned? **VB code: ** Public Function CLGenerateRevenueHistoryChart() …

0
209
Member Avatar for Fieyzah

hello everyone, i had to make a new system for practicum student system this is coding for view student that has been registered. first of all sorry fpr the keywprd that you dont understand cause i am Malaysian `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta …

Member Avatar for pritaeas
0
444
Member Avatar for Darth Vader

Hello, I am trying to restrict to maximum type 60 words in a textbox. I have tried to put a code that check if we have more than 60 words. The code restricts to 60 words but when I loop the textboxes words and put back the string (up to …

Member Avatar for DaveAmour
0
245
Member Avatar for djjeavons

This snippet demonstrates how you can add VBA code to an Excel file at run time. **Prerequisites** In this snippet I am using Microsoft Excel 2013 with the Microsoft Excel 15.0 object library. Before you can use this code, you will have to change a setting within Microsoft Excel to …

0
2K
Member Avatar for Reza_5

Hello everyone! I am trying to divide image into blocks of 8x8 pixels and applying DCT Transform in each blocks. But I don't know how to divide the image. Thanks for helping me. namespace DCTTransform { public partial class Form1 : Form { Image<Bgr, Byte> img; Image<Ycc, Byte> imgYcc; Bitmap …

Member Avatar for castajiz_2
0
2K
Member Avatar for vizz

With following code I tried to upload image and video file at the same time but, image file is uploading & video file is not uploading <form class="pure-form pure-form-aligned" action="Processor.php" method="post" enctype="multipart/form-data" > <fieldset> <div class="pure-control-group"> <label for="image">Upload image</label> <input type="file" name="image" class="pure-input-1-4" /> </div> <div class="pure-control-group"> <label for="video">Upload video</label> …

Member Avatar for jj.dcruz
0
1K
Member Avatar for Mayukh_1

**Okay this is my first post and I am quite excited that how it will be recieved by the community. I have a long experience in C++ programming but never been a part of any community hence I believe that as a tyro, my mistakes will be ignored.** This post …

Member Avatar for NathanOliver
0
309
Member Avatar for Basit_2

Which Sub Directory Save Source Code Of A File And How Many Files Are Created After Compilling? Answer Me Plz, With Details.

Member Avatar for misi
0
203
Member Avatar for divinity02

hi guys, j how are you all doing, i havent been here for a while, anyone miss me, jus kidding anyway i am trying to build this program, it is just a practice thing but I am getting this error and havent got a clue how to make it work …

Member Avatar for divinity02
0
180
Member Avatar for Suzie999

I'm printing some strings to the output console to visualise an array, so I'm looping though a string array and using `Debug.Write(array[x,y] + "\t")` etc... All was fine before I went to bed, and the output was fine, like this. "type-b flat three core 29/03/2015 23:34 6 £13.65 wire grade" …

Member Avatar for Suzie999
0
115
Member Avatar for Priti_P

Hello, I want to check whether one given date range is falling under another range or not. Is there function for this? Because when I am calculating this using To and FROM dates , it is taking efficient. I have to apply separate condition for TO date and FROM date. …

Member Avatar for DaveAmour
0
1K
Member Avatar for cblue

I was wondering if anyone can give me an idea on how i can modify this function to check for duplicates, if it contains a duplicate, since duplicates are not aloowed, output a message. Any help would greatly be appreciated. [code]template<class Type> void orderedLinkedListType<Type>::insertNode(const Type& newItem) { nodeType<Type> *current; //pointer …

Member Avatar for drussell024
0
3K
Member Avatar for shashigowda

i want to create a image gallery,i want to insert multiple files at a time,that should be stored in a database,and i want to display that in my profile.php as a gallery.

Member Avatar for jj.dcruz
0
289
Member Avatar for AntonyRayan

Hi. I am displaying image dynamically from database, When I click the particular image I want to show that image in a popup or lightbox in a simple way. How to do?

Member Avatar for jj.dcruz
0
144
Member Avatar for Catalin_1

Hello, i'm having a little bit of an issue with a portion of code ... It's for a portfolio gallery. $sliders_out = '<div class="fx"><ul class="slides">'; foreach($slides as $slide) { $local = substr(str_replace(array(get_bloginfo('url'), '.jpg', '.png'), array('.', '', ''), $slide['slide_image']), 2); $locals = array_merge(glob($local.'*1024*'), glob($local.'*768*'), glob($local.'*')); rsort($locals); if (isset($locals[0])) $src = $locals[0]; …

Member Avatar for lps
0
183
Member Avatar for iPoor

I have a file download code in vb .net but when i try to download any file (.rar in this case) everything downloads properly but when i open the .rar file WinRAR shows "The archive is damaged!" but when i download the same file from IDM its perfect and no …

Member Avatar for iPoor
0
4K

The End.