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 7799507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:19:57+00:00 2026-06-02T00:19:57+00:00

I want to add all the form values to my database, i know how

  • 0

I want to add all the form values to my database, i know how to insert new records, but with the “Image” i would like to upload, i`m stuck.

What would be the simplest way to insert all from values and upload the image and insert the image url in the database?

Form Source:

<form action="_eventcreate.php" id="contactform" method="POST">
<p>
<label for="event_name">Event Name:</label>
<input type="text" name="event_name" class="input" value="">
</p><p>
<label for="event_description">Description:</label>
<input type="text" name="event_description" cols="88" rows="6" class="input" value="">
</p><p>
<label for="event_date">Event Date:</label>
<input type="text" name="event_date" class="input" value="">
</p><p>
<label for="event_time">Event Time:</label>
<input type="text" name="event_time" class="input" value="">
</p><p>
<label for="event_cost">Event Cost:</label>
<input type="text" name="event_cost" class="input" value="">
</p><p>
<label for="event_image">Upload Image:</label>
<input type="file" name="fileField" id="fileField" />
</p>
<input type="submit" name="submit" value="Create Event" class="submit">                    
</form>

Thanks!

  • 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-06-02T00:19:58+00:00Added an answer on June 2, 2026 at 12:19 am

    1) Use <input type="file" name="image"/> for the upload.

    2) In the form tag add: enctype="multipart/form-data"

    3) Use the $_FILES collection to get the info about the uploaded file(s).

    4) Use is_uploaded_file(), move_uploaded_file() to check for the file & move it to its final destination.

    5) Make sure you save the file in a directory which is accessible through the web & create a URL for it to be saved in the database.

    Check out: http://www.php.net/manual/en/features.file-upload.post-method.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add a + (plus sign) before all the occurrences of image
What if I want not only to add events for all future added, but
All I want to know is if there's an easy way to add lines
I want to save gif type image in mySQL database without post method. <form
I want to add all the keys from the dictionary to the array. This
Expanding on recent_posts_on_self below, I want to add an all_recent_posts_on_self method but I'm not
I want add my custom sidebar next right column all page. Please check this
I want to add a bar right below NavigationController which will visible all the
when asp.net output a page ,I want to add some same parameters for all
I want to access all the files in a folder to add to a

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.