Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form data to web page

Status
Not open for further replies.

LDaveM

Vendor
Feb 12, 2002
336
US
What is the easiest way to take data from a form and put in into a web page? I have already sent the data to and email, but would like to insert it into anothet form and make that form into a web page.
Thanks,
Dave
 
What are you trying to do??? your question requires more informaion as to what your trying to do with the data received from a form.


buffalo.gif

 
Okay, the form that clients fill out and email is a listing of machines they want to sell. I need to take this info and put it back in the web site as items for sale.
Dave
 

Having determined by your question that your knowledge on how html forms work I will advise you to first get acquainted by reading this article.

My comments are not intended to offend you in any way, just an observation. You would profit 100 times over if you read/learn how forms are used based on your needs then for anyone to provide you with the code.

Having said that, I will give the 3 basic ideas.

1. Create a HTML form with all the field necessary for your clients/users.

2. The form shold then be sent to a processing (php, asp etc...) that would take your form variables and insert them into a database using a database connection+recordset(mysql, sql, access, txt etc...) for storing.

3. Create another recordset (on a separate page) to the same database that would display all records in any format desired.

etc...

If you need additional links with detailed information on the basics of .ASP and or PHP let me know...






buffalo.gif

 
I have more than a basic undrstanding of how forms work. I also know that a database would be nice, but my client doesn't want to go that way.
Thanks for the advice.
Dave
 

Then what your client needs is to go back in time to the time when "static" web pages were popular, and what you're going to have to do is, open the email and create the page when the information is submitted.

I stil don't understand why a client would not want a "Dynamic" web process. But oh well.

 
Perhaps storing the data in text files would be more to your clients taste then, no need for a database as such (the text files are the database), and the site is still dynamic.

Ahdkaw
 
You don't need a database.

You do need to use a server-side parsing language.

<form action="page2.php">
// give it the page to go to.

in page2.php, use the variables as you see fit: add them into a database, output them on screen, whatever.


this applies equally to other languages, not just php.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
You can write the form data to a .txt file and have a page running a cgi script parse the data and display it. The script can be found if you search for guestbook routines, that's basically all it is.

Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top