Hello,
I don't know where to begin with this as it's kind of a strange error
and I can't figure it out. I've got a form that I pass several
variables to a php page. One of the variables is a file that is
getting uploaded.
The INPUT is type "file" and the form enctype is set to
"multipart/form-data"
But what happens, is when it gets to the php page that these vars are
sent too, is the file only shows as a forward slash "/" - This is
really bugging me because all of the other variables get passed with
no problems, so I'm at a loss.
Does anyone have any ideas with the problem that I'm having? I'm using
php 4.2.2 on Apache 2.0.40 and I'm not sure what other info would help
with this.
Thank you in advance for any ideas,
Jeff 2 1505
File information is in $_FILES['NameOfTheInput FileTag']
it's an array. To see what it holds, use:
print_r($_FILES['NameOfTheInput FileTag']);
If it's not the problem, share some code so someone can take look at it.
..
Dae I don't know where to begin with this as it's kind of a strange error and I can't figure it out. I've got a form that I pass several variables to a php page. One of the variables is a file that is getting uploaded.
The INPUT is type "file" and the form enctype is set to "multipart/form-data"
But what happens, is when it gets to the php page that these vars are sent too, is the file only shows as a forward slash "/" - This is really bugging me because all of the other variables get passed with no problems, so I'm at a loss.
Does anyone have any ideas with the problem that I'm having? I'm using php 4.2.2 on Apache 2.0.40 and I'm not sure what other info would help with this.
OK,
Here is the form input statement:
<input type="file" name="product_t humb_image" size="32"
maxlength="255" />
Then the next page it goes to, the first thing I call is this:
$d["error"] = "Filename: " . $d["product_thumb_ image_name"];
This then outputs "Filename: /"
But if I put:
$d["error"] = "Test price: " . $d["price"];
it outputs: "Test price: 32.99"
So what I don't understand is why I'm only getting a forward slash "/"
as the filename. That seems really odd.
Does this help at all, or do you need more info?
Jeff
On Mon, 25 Oct 2004 04:09:13 GMT, "Daedalus" <da*********@ho tmail.com>
wrote: File information is in $_FILES['NameOfTheInput FileTag']
it's an array. To see what it holds, use:
print_r($_FILE S['NameOfTheInput FileTag']);
If it's not the problem, share some code so someone can take look at it. . Dae
I don't know where to begin with this as it's kind of a strange error and I can't figure it out. I've got a form that I pass several variables to a php page. One of the variables is a file that is getting uploaded.
The INPUT is type "file" and the form enctype is set to "multipart/form-data"
But what happens, is when it gets to the php page that these vars are sent too, is the file only shows as a forward slash "/" - This is really bugging me because all of the other variables get passed with no problems, so I'm at a loss.
Does anyone have any ideas with the problem that I'm having? I'm using php 4.2.2 on Apache 2.0.40 and I'm not sure what other info would help with this. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dmitriy Iassenev |
last post by:
hi,
I found an interesting thing in operator behaviour in C++ :
int i=1;
printf("%d",i++ + i++);
I think the value of the expression "i++ + i++" _must_ be 3, but all the
compilers I tested print 2.
|
by: Anon Email |
last post by:
Hi people,
I'm playing around with Bartosz Milewski's code at the moment, and I
got the following strange results upon execution of the code included
further below. Please be aware that I deliberately tweaked the code to
produce these results:
Matter for 0 created
Hello from world 1.
Matter for 2009196833 created
|
by: George Hardy IV |
last post by:
Hello all,
I have two forms in my project...
one form allows me to use the arrow keys to move and delete controls on my
form.
the other form does NOT allow me to delete controls or move them with arrow
keys, but I can move the controls with the mouse. Nothing is locked on the
form, so I am very confused. Anyone know what the deal is?
Also, when I have a tab control on the form, and select it, my mouse gets
|
by: hansolox1 |
last post by:
The following program simply sets the icon of a form called form1. When I
get the name of the embedded icon using GetManifestResourceNames(), I store
the name in a string variable called s. The value of s is "test2.icon1.ico".
This program will compile and run just fine from visual studio .net 2003
using .net 1.1 and also will compile and run just fine using csc form1.cs
/resource:icon1.ico.
Now, I created a new string called s2 and...
|
by: Joseph Geretz |
last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm
adding matching pairs of Toolbar buttons and Menu items. All of the buttons
and menu items are wired up to send events to the same method (aka
delegate?). I use the Tag property within this method to determine what user
action is taking place. Very simple:
When adding toolbar button:
tbButton.Click += new...
| |
by: Antonio |
last post by:
Good morning, everyone.
Here is the strange behavior:
I have a datagrid (dgPIs) with paging enabled. When I click to view any
page in the grid, it runs the private void lnkIPReg method, instead of the
private void IPchangePage.
The lnkIPReg method refers to a linkbutton that I created in the grid. The
datagrid properties list the ItemCommand = lnkIPReg and the PageIndexChange
|
by: John Kraft |
last post by:
Hello all,
I'm experiencing some, imo, strange behavior with the StreamReader
object I am using in the code below. Summary is that I am downloading
a file from a website and saving it to disk for further parsing. I
know, I could use the WebClient and it would be easier, but I don't
have the flexibility I want with it.
This code appears to work exactly the way I want unless the user
cancels the the background operation. In that...
|
by: Chuck Renner |
last post by:
Please help!
This MIGHT even be a bug in PHP!
I'll provide version numbers and site specific information (browser, OS,
and kernel versions) if others cannot reproduce this problem.
I'm running into some PHP behavior that I do not understand in PHP 5.1.2.
I need to parse the HTML from the following carefully constructed URI:
|
by: TC |
last post by:
I have a form which I'd like to display as a sizable dialog box. The
behavior I get when I use FormBorderStyle = SizableToolWindow is
perfect. However, when I use that option, the title bar of my form
gets much smaller. The discrepancy really stands out, and looks like a
bug.
I anticipate that someone will tell me that the different title bar is
intentional -- that showing a different title bar is Windows' way of
visually distinguishing...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |