Solved

Upload/Redisplay form

Posted on 1998-08-13
2
150 Views
Last Modified: 2010-04-09
I have a question. I am trying to build a website in which I want to redisplay a gif picture someone upload.
For example: The first page it is the information page. A user fill out the information and there will be a upload
form on there as well. After word the user sumbit the information, the second page redisplay the upload pic the user submit and the information the filled out.
How do i go about writting a code doing it? Does not have to be huge but something to give me an idea
on how to do it. Thanks. I need the upload part as well as the redisplay part. THanks.
0
Comment
Question by:smilepak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 260 total points
ID: 1845308
in perl, using cgi-lib:

=============================
require "./cgi-lib.pl";

# When writing files, several options can be set... here we just set one
# Limit upload size to avoid using too much memory

$cgi_lib'maxdata = 50000;         # zijn dit bytes, bits, oorspronkelijk 50000 ?


$ret = &ReadParse;

open(OUTFILE, ">upload/test.gif");
binmode (OUTFILE);
syswrite (OUTFILE, $in{'upfile'}, length $in{'upfile'});
close(OUTFILE);


# Now produce the result: an HTML page...


print &PrintHeader;
print &HtmlTop("File Upload Results");

print "$in{'upfile'}";

print "\n<P>File was uploaded<P>";


print &HtmlBot;

===========================

In ASP it would look different of course.
0
 
LVL 2

Author Comment

by:smilepak
ID: 1845309
THanks,So is it possible fro you to explain to code a little more.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Style 8 50
Table doesn't show the lines! 3 34
Hit counters in SharePoint 2013 2 57
Display Flex does not Wrap Items 2 42
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question