Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2008, 7:10 PM   #1
hascet
Newbie
 
Join Date: Jan 2008
Posts: 5
Rep Power: 0 hascet is on a distinguished road
Unhappy Need some help with webprogramming

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
hascet is offline   Reply With Quote
Old Jan 15th, 2008, 6:43 AM   #2
hollystyles
Omlette du fromage
 
hollystyles's Avatar
 
Join Date: Oct 2007
Posts: 29
Rep Power: 0 hollystyles is on a distinguished road
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.
hollystyles is offline   Reply With Quote
Old Jan 15th, 2008, 8:13 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Jan 15th, 2008, 2:53 PM   #4
hascet
Newbie
 
Join Date: Jan 2008
Posts: 5
Rep Power: 0 hascet is on a distinguished road
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.
hascet is offline   Reply With Quote
Old Jan 15th, 2008, 3:12 PM   #5
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 15th, 2008, 4:22 PM   #6
hascet
Newbie
 
Join Date: Jan 2008
Posts: 5
Rep Power: 0 hascet is on a distinguished road
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.
Attached Files
File Type: php test.php (370 Bytes, 2 views)
hascet is offline   Reply With Quote
Old Jan 15th, 2008, 5:10 PM   #7
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
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.
OpenLoop is offline   Reply With Quote
Old Jan 15th, 2008, 9:53 PM   #8
hascet
Newbie
 
Join Date: Jan 2008
Posts: 5
Rep Power: 0 hascet is on a distinguished road
Re: Need some help with webprogramming

Quote:
Originally Posted by OpenLoop View Post
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.
Ok got this so far...but I don't know how to make it so the words are displayed in the action.php code it just does numbers except for the motherboard output it does the full thing for that. For instance, if you enter E6600 for Processor it outputs 0.

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']; ?>
hascet is offline   Reply With Quote
Old Jan 15th, 2008, 10:32 PM   #9
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC