Computing.Net > Forums > Web Development > creating a php upload page

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

creating a php upload page

Reply to Message Icon

Name: danieltipple
Date: June 28, 2006 at 03:59:06 Pacific
OS: win xp pro
CPU/Ram: 2.0ghz
Comment:

Hello everyone, I'm quite new to the php world so please bear with me! I'm currently working on a webstore using php and its almost finished....I'm trying to create a page that the user is directed to after a payment has been received via paypal and here the user uploads a file from their pc to the webstore which is added to the products - can anyone help??? I'm using oscommerce for the webstore admin.

Regards & thanks in advance
Daniel



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: June 28, 2006 at 04:51:42 Pacific
Reply:

Have you tried to search for oscommerce upload modules or some kind? Take a look here:

http://www.google.com/search?q=oscommerce

I can't recommend one.

-----

To "modify" oscommerce, you need more than basic php & html knowledge. But to just create an "Upload Page", look at the example script in here:

http://www.php.net/features.file-upload

...let us know if you still have problems.

---
Site of the Day


0

Response Number 2
Name: Laler
Date: June 28, 2006 at 04:52:55 Pacific

Response Number 3
Name: danieltipple
Date: June 28, 2006 at 06:37:05 Pacific
Reply:

Thanks, I will try this and let you know. Regards


0

Response Number 4
Name: danieltipple
Date: June 28, 2006 at 07:08:39 Pacific
Reply:

I think I've found a possible solution for this... check this code:-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">

<tr>
<td height="28" colspan="2" class="style1">Order ID: </td>
<td colspan="2" height="28"><input type="text" name="textfield" /></td>
</tr>
<tr>
<td width="65" height="28" colspan="2" class="style1">Location:</td>
<td width="178" colspan="2" height="28"><select id="typ" onchange="checkType(this)" name="type">
<option value="0">- Select Location -</option>
</select> </td>
</tr>
<tr>
<td width="65" height="28" colspan="2" class="style1">Genre:</td>
<td width="178" colspan="2" height="28"><select name="cat">
<option>- Select Genre -</option>
<option value="88">Jazz</option>
<option value="57">Hip Hop</option>
<option value="60">Dance</option>
<option value="68">Pop</option>
<option value="80">Punk</option>
<option value="72">Rock</option>
<option value="56">Electronic</option>
<option value="78">Classical</option>
<option>R 'n' B</option>
</select> </td>
</tr>
<tr>
<td width="65" height="28" colspan="2" class="style1">Band:</td>
<td width="178" colspan="2" height="28"><select name="select">
<option selected="selected">- Select Band -</option>
<option value="88">Solo - Male</option>
<option value="57">Solo - Female</option>
<option value="60">Group - All Male</option>
<option value="68">Group - All Female</option>
<option value="80">Group - Mixed</option>
</select></td>
</tr>
<tr>
<td width="65" colspan="2" height="28"><span class="style1">Instrument:</span></td>
<td width="178" colspan="2" height="28"><select name="select2">
<option>- Select Instrument -</option>
<option value="88">Guitar</option>
<option value="57">Drums</option>
<option value="60">Base</option>
<option value="68">Keyboard</option>
<option value="80">Piano</option>
</select></td>
</tr>
<tr>
<td height="28" colspan="2" class="style1">Choose File: </td>
<td colspan="2" height="28"><input name="file" type="file" size="30" /></td>
</tr>
<tr>
<td colspan="2" height="28"> </td>
<td colspan="2" height="28"><input type="submit" class="input" value="Upload" name="submit" /></td>
</tr>
</table>

 </p>

 </p>
</body>
</html>


Basically this screen can be accessed 24/7 but only the order ID determines whether the file is uploaded. Is there a way I can get this to check the orders to see if its exists and then take the information and upload it directly to the products based on the selection???


0

Response Number 5
Name: Laler
Date: June 28, 2006 at 08:49:06 Pacific
Reply:

um... we need more info :-)

Basically this screen can be accessed 24/7 but only the order ID determines whether the file is uploaded.

You mean: You wanted if people insert an order ID into that text field, then it'll check if that order ID has "File uploaded"?

And that 'select' field under it, calls a javascript function which you didn't provide

Is there a way I can get this to check the orders to see if its exists and then take the information and upload it directly to the products based on the selection???

Yes, everything can be done, but you need more than basic php & html to create custom modules for oscommerce. You need to know how the "orders" are stored, etc, then you can create custom code to do those checks.

If there's no ready-made oscommerce module available that suits your need, then you have to learn php, mysql, & html (a lot) -- or hire someone :-)

But if you just want to check if a file (not "order") exists, we can do it without understanding how oscommerce works

If you just want to check if an order exists, that might be pretty simple if you know how the 'orders' are stored in the database.

If you want to modify the orders, the difficulty will depend on many conditions.

I don't know if anyone here knows oscommerce so good that they can provide you with a direct answer without learning a lot first, but oscommerce forum is the better place for your question.

If you do want to learn how to create oscommerce modules, this is one of the right place to start, but you need to simplify the question :D

---
Site of the Day


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: creating a php upload page

creating a youtube like page www.computing.net/answers/webdevel/creating-a-youtube-like-page/3631.html

php upload script?? www.computing.net/answers/webdevel/php-upload-script/2083.html

Apache Password From Form www.computing.net/answers/webdevel/apache-password-from-form/908.html