Jump to content


How Do I Carry Variables To Other Pages?

  • Please log in to reply
2 replies to this topic

#1 jo.nova

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 04 August 2006 - 03:56 PM

I started a thread about this yesterday, but it looks like its gone! I'll be more clear this time.

I'm trying to implement a form that gathers customer information and allows them to send me files.  Right now, the script takes the form's $_POST variables, puts them in a MySQL database, emails me with the customer information and attaches their file to the email, and also emails the customer a confirmation email of their order.

I've run into two problems:  1) The php.ini on my host has the max_upload setting set to 8MB and 2) even if I bumped up the max_upload setting, I would still have to worry about browser time-outs for large files.

So, I've found an open-source applet that allows uploading to my webserver.  I've tied this applet into my form, and it works great, but now I've got other problems.  The applet uses a php script to name the file and move it from a temporary location to its permanent location.  This script is called as a parameter of the applet.  The problem is that the script uses the flush() function; so after it's done, the variable that contains the file's name is blown away.

I need to be able to capture the file name and send it in the emails. Or even better, when the form is submitted, create a folder named the same as the unique order number, then move the files into that folder.

Any ideas?

#2 nethnet

  • Members
  • PipPipPip
  • Advanced Member
  • 284 posts
  • LocationPhiladelphia, PA, USA

Posted 04 August 2006 - 04:10 PM

I assume you cannot edit this script?
"Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep."  --Scott Adams

Current project: nethnet.com

#3 jo.nova

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 04 August 2006 - 04:19 PM

Sure, I can edit any of the PHP. But I can't edit the applet, obviously, because its a JAR application file.

So, no it's not a matter of not being able to edit the PHP scripts.  I'm just asking "what's the best angle for this problem"?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users