![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 5
Rep Power: 0
![]() |
Hey guys, I really have no coding experience at all, but I want to make some kind of "mod shop" where users can register and have say 10(just a random number) blanks where they can fill in the specs of their computer, then add pictures, a title, name, etc. then submit it and have a page created for it. And I want this to be on a website, and be self sufficient. I wouldn't even know what language you woul duse to do this. Does anyone know how I could do this, or could do it themselves?
Thanks, hascet ![]() |
|
|
|
|
|
#2 |
|
Omlette du fromage
Join Date: Oct 2007
Posts: 29
Rep Power: 0
![]() |
Re: Need some help with webprogramming
You could do this using PHP or ASP.NET or Ruby on Rails.
You would need to look at domain hosting packages that support one of these technologies and includes a database. If you want to have it done for you, contact me by PM. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
Re: Need some help with webprogramming
Welcome to PFO hascet!
This is easily done in PHP... host the page yourself on a LAMP (Linux, Apache, MySql, Php) server in your home and save on costs. If you want to attempt this yourself, we are more than willing to assist.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jan 2008
Posts: 5
Rep Power: 0
![]() |
Re: Need some help with webprogramming
Thanks for the replies. I already have a domain, and Linux hosting with MySQL, and PHP, I have MyBB, and Wordpress installed on it already.
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
Re: Need some help with webprogramming
You wouldn't even need a database for this (basing primarily on the requirements in your description). You could use it to add a bit more functionality, but since you're a beginner, it's best to take things in steps.
You could accomplish this fairly easily with only PHP. Crack open any tutorial you can find. There's thousands out there, I wouldn't even know which to recommend. http://php.net is also excellent for PHP documentation. |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jan 2008
Posts: 5
Rep Power: 0
![]() |
Re: Need some help with webprogramming
Would something like this work?
<form action="action.php" method="post"> <p>Motherboard: <input type="text" name="motherboard" /></p> <p>Processor: <input type="text" name="processor" /></p> <p>Hard Drive: <input type="text" name="harddrive" /></p> <p>Video Card: <input type="text" name="videocard" /></p> <p>Case: <input type="text" name="case" /></p> <p><input type="submit" /></p> </form> I just don't know how I would make it work so when you hit the submit button it makes that into a web page. |
|
|
|
|
|
#7 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Re: Need some help with webprogramming
You probably have to create and modify the 'action.php' page to accept the inputs you defined in the <form> and use it to create a new page. Start by creating action.php and have it display a debug message ('I AM HERE' ). That will give you assurance that your form is working properly.
|
|
|
|
|
|
#8 | |
|
Newbie
Join Date: Jan 2008
Posts: 5
Rep Power: 0
![]() |
Re: Need some help with webprogramming
Quote:
test.php <form action="action.php" method="post"> <p>Motherboard <input type="text" name="motherboard" /></p> <p>Processor <input type="text" name="processor" /></p> <p>Hard Drive <input type="text" name="harddrive" /></p> <p>Video Card <input type="text" name="videocard" /></p> <p>Case <input type="text" name="case" /></p> <p>3DMark06 Score <input type="text" name="3dmark06" /></p> <p><input type="submit" /></p> </form> action.php <p>Motherboard:</p> <?php echo htmlspecialchars($_POST['motherboard']); ?> <p>Processor:</p> <?php echo (int)$_POST['processor']; ?> <p>Hard Drive:</p> <?php echo (int)$_POST['harddrive']; ?> <p>Video Card:</p> <?php echo (int)$_POST['videocard']; ?> <p>Case:</p> <?php echo (int)$_POST['case']; ?> <p>3DMark06 Score:</p> <?php echo (int)$_POST['3dmark06']; ?> <p>Super Pi 1M Time:</p> <?php echo (int)$_POST['superpi']; ?> |
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() |
Re: Need some help with webprogramming
By putting (int) in front of your statements, you're converting them all to numbers.
For instance, "E6600" with (int) in front, will show as 0, because "E6600" is not a valid integer. (int) is used when you want to make computations with integers, but your data is not a number. For instance, if the user entered "345". You can not add 100 to it to make 445. You must first convert it to a number, via (int), and then add 100. So try taking the (int)s out. And congrats on getting this far already. I'm quite surprised by your demonstrated ability to chug out some working code. You're on a good start. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|