troubleshooting Question

POST question

Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox asked on
PHP
8 Comments1 Solution190 ViewsLast Modified:
Hi,

I have a php page which creates a form, whose definition looks like:

<form action="index.php?option=com_ja_submit" method="post" enctype="multipart/form-data" name="adminForm" onSubmit="javascript:setgood();">

but the 'enctype="multipart/form-data' part was messing up sticking all my form parameters into the $_REQUEST array. So I took it out. Now all the form parameters get passed fine to the php page that processes the request.


In the page that processes the post request, I use some functions to upload files like:

     move_uploaded_file($_FILES['image1']['tmp_name'], $image1Temp))

will that work ok? I think the original author included the

    enctype="multipart/form-data"

part in the form definition because files would be uplodaed during processing. Is this true?


In general I'm just trying to:
1) Get filenames from users machine they want to upload (they select that in the form fields).
2) Send the file names to the processing php page
3) Start moving the requested files from the client machine to the server.


Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros