Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7625081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:08:41+00:00 2026-05-31T05:08:41+00:00

I am trying to create a please confirm page before submitting the data from

  • 0

I am trying to create a “please confirm” page before submitting the data from a form. The form has a file upload field. How do I pass the value of what is submitted in the upload field so they can confirm and click submit again?

The rest of the data I am going to post into hidden fields and echo the values so they can confirm.

How do I accomplish this with an uploaded $_FILE

first page:

<form action="confirm.php" method="post">
<input type="text" name="name"/>
<input type="file" name="attachment"/>
<input type="submit" name="submit" value="Submit"/>
</form>

Confirm.php

<form action="submit_data.php" method="post">
Your Name: <? echo $_POST['name']; ?>
<input type="hidden" name="name" value="<? echo $_POST['name']; ?>"/>

//HERE IS WERE I NEED TO STORE THE FILE INFO 
Your File Name: <? echo $_FILES['attachment']['name']; ?>
<input type="hidden" name="<? echo $_FILES['attachment']; ?>"/>

<input type="submit" name="submit" value="Submit"/>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:08:41+00:00Added an answer on May 31, 2026 at 5:08 am

    You will have to process & store the image in the in the confirm.php. Then store a reference to the processed image:

    // pseudo code for confirm.php
    process image
      if error back to form.php
      move image to tmp directory.
    inject path of tmp file into hidden field
    
    // submit_data.php
    grap temp path from hidden field.
    copy to final location
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a PDF file of current view. Can anyone please
i am trying to create a login form page for codeigniter 2 within sencha
I'm new to Jquery, so please bear with me. I'm trying to create a
I'm trying to create a dynamic ItemizedOverylay (please see the code below) on Google
Could someone please help me. I'm trying to create an xml list with all
Please help me with the missing LIBs for this MOZILLA program. Trying to create
Please could someone help me, i will be forever appreciative. I'm trying to create
I'm having problems trying to call a Javascript function from an enqueued javascript file
i you please help me out with my problem i am trying to create
Please guide me if I'm on right track. I'm trying to create database schema

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.