pcbguy Posted November 9, 2007 Share Posted November 9, 2007 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. Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/ Share on other sites More sharing options...
phpQuestioner Posted November 9, 2007 Share Posted November 9, 2007 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. Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/#findComment-388207 Share on other sites More sharing options...
pcbguy Posted November 13, 2007 Author Share Posted November 13, 2007 That is what I have going so far. I think I have the form ready to add the cars to the database. I wonder if there is a way to have the picture automatically resized when it is uploaded? Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/#findComment-390825 Share on other sites More sharing options...
pcbguy Posted November 13, 2007 Author Share Posted November 13, 2007 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? Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/#findComment-390917 Share on other sites More sharing options...
Sleeper Posted November 13, 2007 Share Posted November 13, 2007 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. Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/#findComment-390933 Share on other sites More sharing options...
pcbguy Posted November 14, 2007 Author Share Posted November 14, 2007 This will be at an address that only I can get to. This is just for our car lot. Link to comment https://forums.phpfreaks.com/topic/76668-i-can-picture-how-i-want-it-but-cant-build-it/#findComment-391755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.