Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-07-2002, 09:32 AM   PM User | #1
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
create html page calling text file or db info.

Ok, I'm working on this project for students so that they can pool all of their study resources into one giant db on the web.

I'm just trying to figure out how I would do it, should I post the info from the form into a database and which is accessed from the newly created page or do the same except from a text fil instead of a db?

Also how would I go about making the pages?

I know that using the filesystemobject I can create a text file but can I make an asp file?

If I can make an asp file how can write the lines of code needed to access the newly created database entries?

the form I'd be using would be something like to input fields, just one for the title and one for the content of the resulting page.

OR

Should I just have the page created without txt file of db, with the form results pasted to the page? Which way would be easier for a search feature?
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 08-07-2002, 11:37 PM   PM User | #2
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
I'd save each input field to a database, and then display them all on a separate page which retrieves each record.

There are plenty of examples of this, I'd check out:

http://www.liquidrage.com
http://4guysfromrolla.com
http://www.aspalliance.com

Something like this is fairly easy though - just make an access db with two fields, and add a primary key field (AutoNumber), and when they post the form, validate the data, and if the data is good then insert it into the database.

Then to display it all, you can just use a simple SQL statement...

Check out the answer I gave to Idiuf very recently to see a really basic way to get the stuff in your database - there's lots of other thread here too that should help!
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)

Last edited by whammy; 08-07-2002 at 11:41 PM..
whammy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 04:20 AM.


Advertisement
Log in to turn off these ads.