Sir I have these codes [PHP] <form name="form1" action="<?php $_PHP_SELF ?>" method="post" enctype="multipart/form-data"> <p<Photo</p> <p><input type="file" name="file" id="file" value="<?php echo $myphoto; ?>"></p> <p><input type="submit" value="photo" name="save"></p> </form>[/PHP] and these are codes for submit button [PHP]if(isset($_POST['save'])) { if(isset($_FILES["file"])){ $myphoto=$_FILES["file"]["name"]; echo $myphoto; }else{ echo 'Error'; } } [/PHP] When I press save button the it shows the selected name properly, But it immediately make file input blank like this ![Untitled.png](/attachments/small/4/be0f4a5158a6575f919ec4d15e6e93eb.png "align-left") Why php echo is not working in this line? [PHP] <p><input type="file" name="file" id="file" value="<?php echo $myphoto; ?>"></p>[/PHP] File name must remain appear after echo. Please help

Member Avatar
Member Avatar
+0 forum 2

Hi I'm trying to find a script that will allow me to set multiple options eg. option 1 = 40, option 2 = 15, option 3 = 30 etc where the user can select any number of the options and it will total the numbers up for them example there are 10 options, the user only selects 5 of them the calculator will add up the value of just those 5 options and the user can add from the other options or remove from the currently selected options and it will change the added up value of the total

Member Avatar
Member Avatar
+0 forum 6

Will work on latest:Chrome Safari Firefox Opera and all versions of IE. *(client notifications are for demonstration purposes only, and subject to designer decisions and modifications ) Can be used for size and mime-type restrictions. When mime-type is not an issue, accepting any kind of image format can be done usnig "image" as a function argument. Multiple mime-types allowed should be separated with the following syntax: "gif|jpeg|png" etc. [see the demo]. Numeric value signifies the maximum size in kilobytes. Benefits: your client doesn't have to wait until the image uploads on the server just to see that his file is …

Member Avatar
Member Avatar
+2 forum 4

Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? When i type: `I'm fine.` It will be sent to db and will be printed, in both place as: `I'm fine.` What is the solution for that?

Member Avatar
Member Avatar
+0 forum 2

Hello everybody. There is a row in my db table I have set it's type as "TIMESTAMP". How should I fill in? Should get the current timestamp in php and send it to that row, correct? So how can I do that?

Member Avatar
Member Avatar
+0 forum 5

Hello, So I'm having trouble figuring out what the correct syntax is for a function with a return type that is a template type and is within a namespace. Anyone see anything wrong with the code below? -------.HPP file: #pragma once #ifndef EC_UTIL_H #define EC_UTIL_H #include "../CommonHeaders.hpp" #include "../core/common/APVertex.hpp" #include <QString> class QWidget; namespace EditorCommon { template <class T> T *findAndAssert(QString id, QWidget *root); } #endif #include "ECUtil.hpp" ------------------- .CPP file: #include <QApplication> #include <QWidget> #include <QMessageBox> namespace EditorCommon { template <class T> T *findAndAssert(QString id, QWidget *root) { T *w = root->findChild<T *>(id); if(!w) { QMessageBox::critical(root , QString("Critical Application …

Member Avatar
Member Avatar
+0 forum 1

SO i have a python code that collects xml data in a file then seraches the file for the scancode and once it finds that the scan code is there it starts scanning for the order number this is where im running into trouble at. What i want it to do is when it gets the order number it stores it so that when it loops back though to see the next number it sees that the first one was stored and over writes it or just skips it entierly. I have been trying a way i thought was correct …

Member Avatar
Member Avatar
+0 forum 2

Hi! Have anybody seen Scot Meyers' video on Universal references? In order for a reference to be "universal" two requirements should be fulfilled : 1)variable should have double ampersand after it's type : sometype&& 2) the type should be deduced . The second point is somewhat confusing to me: despite examples provided there, Meyers hasn't given a clear definition : what does mean deduced type? So the question is : could you give if not a clear difinition of what criteria a type should fulfill in order to be called "deduced", but at least your vision on it. Thanks beforehand.

Member Avatar
Member Avatar
+0 forum 1

Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add more character my earlier value gets erased due to onclick. How to make this edit/modifiable possible without erasing text which I wrote earlier. Example: I write ANKIT Then I move to second text tab Then I move to first text tab to add another letter in Ankit to make it …

Member Avatar
Member Avatar
+0 forum 1

I have this particular snippet.. newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; case "select-one": newcell.childNodes[0].selectedIndex = 0; break; case "number": newcell.childNodes[0].value = ''; break; } the switch above makes the newly added rows to reset the value from the copied row. the text and number resets. but the drop-down and checkboxes do not what commands does these two need to reset their values? for the dropdown, the first option and for the checkboxes is no box is checked

Member Avatar
Member Avatar
+0 forum 1

list the entire database in c++, what is the size of each of the data type

Member Avatar
Member Avatar
+0 forum 2

Hey everyone. I'm new here just looking for some guidance / pointers. I'm working on a program to figure out what kinda data is contained with in unknown file types which belong to a game I'm modding. There are a few programs that all ready extract data from the main archiv files but it out puts files that are labeled with unknown extensions so I'm trying to figure out what these files Are... so is there any simple way to do this? Maybe certain headers i can look for?

Member Avatar
Member Avatar
+0 forum 1

Hello, I was trying to view all the data from a single from a database after the button "search" is clicked and the output will be inserted into corresponding textboxes for future editing. After I entered the ID(1) I get an "OleDbException was unhandled" " Data type mismatch in criteria expression." error. I can't figure out the problem at all. All the type for my database is text except for total_payment which is in currency. Any help is greatly appreciated. Thank You. Dim connStr As String = "provider=Microsoft.ACE.OLEDB.12.0;Data Source=cars.accdb" Dim conn As New OleDbConnection(connStr) Dim command As OleDbCommand Dim dt …

Member Avatar
Member Avatar
+0 forum 5

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly processed data (what I mean is the data from the database plus all related data created by way of data manipulation). 2. the last view of the program? (What I mean is, when the program is restarted I want it to display the last thing the person saw; GUI and …

Member Avatar
Member Avatar
+0 forum 22

so.. to put this simply: >>> BU5 = bu(5) >>> BU5() 0 >>> BU5(1024) 1024 >>> BU5 == bu(5) False >>> BU5 <__main__.bu instance at 0x00AC5E40> >>> bu(5) <__main__.bu instance at 0x012C6788> BU5 == bu(5) is supposed to return True due to it's expected usage: >>> var = bu(5)() #read big u-int from 5 bytes >>> type(var) == bu(5) True I was thinking to use a dictionary and reference the first class initializer based on the byte-size but how would I compair it properly?? here's the current code for my class: _buTypes = {} class bu: def __init__(self,byte_size): self.size = …

Member Avatar
Member Avatar
+0 forum 3

We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!! Assignment You have been asked to represent airport data where an airport has required attributes name and location; and an implied attribute famous_assoiciation. The famous_assoication attribute is the name of a famous person after whom the airport has been named. An airport is composed of one or more hangers. Each hanger has a number, location and a set of 0 or …

Member Avatar
+0 forum 0

Hi everyone, I'm new in vb.Net programming and i just want to ask how to validate a "Double" data type. for example. Dim number as Double number = textbox1.text If the value of "number" variable is in "Double" data type like 1.23 or 0.12 it returns a correct value and If the value of of a "number" is like ... or .. it returns an error Conversion from string "." to type 'Double' is not valid. I tried to suppres the error using the try catch but it still return the same error

Member Avatar
Member Avatar
+0 forum 6

Hie,had just been told to do a research on strings,thier types and how there are used. Please help me out as i research the other side

Member Avatar
Member Avatar
+0 forum 2

Hi Guys, One of our staff PC has a problem, the scenarios: **Specs:** (Alias Names) * Windows 7 Pro, 32 Bit, 2 GB RAM * Company Name: Contoso * Staff PC under Domain Alpha * PC Name: Contoso1-PC * Local Users are: administrators and john * User profiles: - operations (contoso domain) - john (local) - administrator (local) * MS Outlook connected to operations@contoso.com **Thursday:** IT 1. remove/uninstall chat messengers, blocked linkedin,facebook,twitter,youtube 1. change User Account Type (Local Staff John Doe) from User to Guest 1. shutdown the system **Friday** 1. turn on the PC and staff asks for the …

Member Avatar
Member Avatar
+0 forum 5

what are type conversions in operator overloading??

Member Avatar
Member Avatar
+0 forum 1

I am currently working on a report and I am trying to build a query that keeps giving me this error: `"Data type mismatch in criteria expression"` In my first query, I am calculating the difference between two dates to get a day until our ship leaves port (ex. 6/12/13 minus 6/10/13 = 2 Days) with each revenue booking. I then created another query to sum all the revenue by the day. However, when I try to run the query, I get this error. For some reason it doesn't like me grouping by this calculated field. Does anyone know how …

Member Avatar
Member Avatar
+0 forum 1

why constructor don't have return type

Member Avatar
Member Avatar
+0 forum 3

I tend to receive the following error message when I view the site in IE 9: HTML1524: Invalid DOCTYPE. The shortest valid doctype is "<!DOCTYPE html>". activate.html, line 1 character 1 SEC7113: CSS was ignored due to mime type mismatch style.css I include herewith the html code: <!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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=3.0.1"> </script> <script type="text/javascript" src="js/activate.js"> </script> <script type="text/javascript" src="js/img-rotator.js"> </script> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" /> </head> <body> <center> <table> <tbody> <tr> <td colspan="2"> <img src="images/Complete-Banner.gif" height="251" width="1052" /></td> </tr> <tr> <td class="top" width="251"> <table …

Member Avatar
Member Avatar
+0 forum 3

Hey! Im doing a project, where i have to manage a bunch of different appliences. I´ve made a custom generic collection class that has a few different search methods. Now the collection class has to hold all of the different appliances (so they all inherits from the same superclass: Appliance). I can't see how the search methods can return anything but an object of the superclass, so when they return that i would like to be able to cast it to the actual appliance. The only way i can see how that is possible is to make an if-else chain …

Member Avatar
Member Avatar
+0 forum 5

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. Here is the code: Photograph1.Image = Photograph1.Image.FromStream(New IO.MemoryStream(arr)) Any help would be greatfull. The programms runs and works, its just got those annoying warnings.

Member Avatar
Member Avatar
+0 forum 5

Hello, I have written a C# class for BinarySearchTree <T> where T is generic type, which creates a binary serach tree, returns true/false if it is empty, gives leftsubtree, rightsubtree, prints nodes. I want to write a search method, int search (T element), which will search the element if it already exists in the tree. For this I need to compare the element, with elements in the binary search tree. It is easy to do if elements are of specific type but for wrtiting a generic class, how do I compare two objects of type T, which is not known. …

Member Avatar
Member Avatar
+0 forum 5

hi i am writing a report, it must have parameters ToDate and FromDate,now the thing is i did all that but it stllrespond with just headring no data. Please help what am i doing wrong

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements { struct Elements *next; void *data; } Elements; bool push(Elements **Stack, void **data); bool pop(Elements **Stack, void **data); bool createStack(Elements **stack); bool deleteStack(Elements **Stack); int main() { Elements **myStack; if (!createStack(myStack)) cout << "Something happend!" << endl; cout << "Stack created." << endl; int i = 10, j = 20, …

Member Avatar
Member Avatar
+0 forum 2

Hello Community, I was wondering if there is a way to pass a file from my computer (eg. using the <input type="file"/> script) to my api on my website?

Member Avatar
Member Avatar
+0 forum 1

private void decrypt_Click(object sender, EventArgs e) { v = Convert.ToDouble (txtencrypt.Text); t = Math.Pow(v, d); MessageBox.Show(Convert.ToString(t)); MessageBox.Show(""+t.ToString()); MessageBox.Show("" + Convert.ToDecimal(n)); msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n)); txtdecrypt.Text = Convert.ToString(msg); } this is the code im working now for rsa decryption. the problem im getting is the pow function return in exponential format, but i need the non exponential format of output. can any one please help me to find out solution?

Member Avatar
Member Avatar
+0 forum 5

The End.