New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Trouble with a form for file upload

Post Reply New Thread Subscribe

Thread Tools

Member Since: Mar 27, 2008
Posts: 18
raydot is on a distinguished road

raydot is offline
Hi all,

I'm trying to get a file upload tag to work on my local php/mysql setup.

Here's the code (relevant parts):

<form method="post" action="insert.php" enctype="multipart/form-data">
<input type="text" name="short" size=50>
<input type="file" name="userfile" size=50>
<input type="hidden" name="MAX_FILE_SIZE" value="30000">

I also bumped the "upload_max_file_size" variable in php.ini 5M

That and everything else I've tried all look right to me, but the form won't pass a value. It passes along the "short" value just fine, but the "userfile" value isn't getting sent to "insert.php" in Firefox.

The Safari browser just dies completely, won't submit the form.

Any ideas?
QUOTE Thanks

Thyamine's Avatar
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
Try taking the size=50 out of the input field for the type=file, just in case it's trying to read the directory path and it's longer than 50 characters.
QUOTE Thanks

Post Reply New Thread Subscribe

« Can't preview in Dreamweaver | Think this would be safe? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
slow upload speeds with iDisk using Transmit software nick_harambee OS X - Apps and Games 1 08-27-2009 10:24 AM
Photobucket & Putfile trouble JwMonE99 OS X - Apps and Games 7 07-07-2008 03:39 PM
PC utility to upload multiple photos to .MAC idisk waterspirit Running Windows (or anything else) on your Mac 0 04-13-2008 02:11 PM
Searching FTP client that can limit the upload speed supra2800 OS X - Apps and Games 0 05-20-2007 03:43 PM
Urgent help PHP form. design2 Web Design and Hosting 6 11-29-2006 09:30 AM

All times are GMT -4. The time now is 04:28 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?