Jump to content

I can picture how I want it but can't build it.


pcbguy

Recommended Posts

I am working on a page on our site and am having some trouble. I want a form that you can fill in the blanks. The blanks would be Year, Make, Model, Price and another blank to upload a picture. Once the items have been filled in and "Submit" is clicked I want it to put the information on a page in a predetermined spot. I hope this is not being vague.

 

Maybe there should be another blank on the form for the spot on the site I want that record to appear. Then it puts the information on the site with the picture displayed. I found a script that will allow me to upload a pic to a database.

 

Any help is greatly appreciated.

sounds like you need to build a html form and submit you data (year, make, model, price, and photos) to a php script that has mysql in it that saves your data and photos to database. Then where ever you want to content to display, just query your database with mysql and echo/print out your database content.

Here is what I have for the form:

 

<form method="post" action="addimage.php" enctype="multipart/form-data" name="form1">

      <table>

      <tr height="20">

      <tr>

      <input type="text" name="position">Position

      <input type="text" name="year">Year

      <input type="text" name="make">Make

      </tr>

      <tr>

      <input type="text" name="model">Model

      <input type="text" name="price">Price

      </tr>

      <tr>

      <input type="text" name="description">Description

      </tr>

      <input type="file" name="file">

      <input type="hidden" name="MAX_FILE_SIZE" value="500000">

      <input type="submit" name="Submit" value="Submit">

      </table>

      </form>

     

 

Look right so far?

Not that I can answer your question but I would highly recommend you find a way to code it so that new posts have to be authorized before they appear. Lost of "jokers" out there that will be uploading more then just car pics if you let it auto appear.

 

Just a side note recommendation.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.