Current location: Hot Scripts Forums » Programming Languages » PHP » Web form to upload, and report the file name to database


Web form to upload, and report the file name to database

Reply
  #1 (permalink)  
Old 01-03-06, 11:01 PM
fompsweeva fompsweeva is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Web form to upload, and report the file name to database

Hello,

I'm having a few issues, probably because I am new to PHP, having only used HTML and a bit of Java before Monday.

I'm making a database driven website. Each database entry consists of id, catid, brand, description, price, intfree, picurl1, picurl2, picurl3.

I've got as far as setting up all the outputs going to where they need to go, and everything is working great.

My main issue is with the input of images. I want to be able to submit up to 3 images and all of the texual information from one form, but I can't work out how to post the relevant information to both external .php files (insert.php and uploader.php)... I can only seem to do one or the other.

I think my troubles lie in my form skills. I don't know how to make it submit to both upload the image and report to the database.

If anyone can help, it'd be greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-04-06, 12:13 AM
knine143 knine143 is offline
Newbie Coder
 
Join Date: Jan 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
You could have one page include the ohter. For example, have the form post to insert.php with

<form action="insert.php" method="post">

and then in insert.php have this php code:

<?
include("upload.php");
?>

That way, after it is done inserting the info into the database, it'll upload the file. Or you could do it the other way around by posting to upload.php and then including insert.php in the script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-04-06, 03:18 AM
fompsweeva fompsweeva is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
http://pastebin.com/489884

Can anyone give me any tips on how to pull the file names from those files and submit them to the database? I'm lost!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP File Upload/User Manager Script Needed Computra Script Requests 2 11-09-05 03:39 PM
RapidShare Auto Upload Coder orbitalsoft Job Offers & Assistance 0 08-12-05 03:13 AM
upload content of internet explore to crystal report program mathfxr ASP 1 02-25-05 11:44 AM
Real Estate web database- PHP/MYSQL willtell PHP 1 10-22-04 01:47 AM
Real Estate web database- PHP/MYSQL willtell New Members & Introductions 0 10-06-04 01:15 AM


All times are GMT -5. The time now is 09:17 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.