| Coding Forum Problems with your code? Let's hear about it. |
09-25-2007, 02:24 AM
|
#1 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Help with a form on a page
Ok I want to create a form on one of my pages, but I need a way for it to save to the server and also be access able from the server. The other thing is it I need to let the person filling it out be able to name it. Is there any way to do this, and if so can you please tell me how?
|
|
|
09-25-2007, 09:03 AM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
have you any idea of what you just said? 
|
|
|
09-25-2007, 10:17 AM
|
#3 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
What do you mean?
|
|
|
09-25-2007, 10:35 AM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
Quote:
|
Ok I want to create a form on one of my pages
|
that's easy. <form></form>
Quote:
|
but I need a way for it to save to the server
|
Save the input data, right? -> server-side code (PHP, VB.NET, C#, ...)
Quote:
|
and also be access able from the server
|
Can you give a small example?
Quote:
|
The other thing is it I need to let the person filling it out be able to name it
|
HOW?
^^ What do you mean by that??
|
|
|
09-25-2007, 10:43 AM
|
#5 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Right i know the <form> </form>
Yeah it ineeds to save the information that was entered, and i need to be able to view it after it was saved. The name it part means, I need to let the person filling it out set the name it will be saved as.
|
|
|
09-25-2007, 05:58 PM
|
#6 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
1. Create the form
2. Save the data from the form:
Using a programming language(as described earlier) save the data - in a database
- or
- in a file (.txt, .xml,....)
3. View saved data: - select the data you're interested in from the database
- using ASP.NET
- using PHP
- select the data you're interested in from the file
- using ASP.NET
- using PHP
4. The name it part means, I need to let the person filling it out set the name it will be saved as.
I don't understand what you try to say here...
(You mean you want to name the data saved from that form like you'd name a file or something for later access?)
|
|
|
09-26-2007, 03:26 AM
|
#7 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Now using those ways will open the saved data in a new window still with the form template around it?
Yes like you would name a file for later access.
|
|
|
09-26-2007, 06:32 AM
|
#8 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
1. Yes.
2. For that, you must add a textbox ( <input type="text" /> ) in your page so the visitor can type in the name he/she desires.
|
|
|
09-26-2007, 12:14 PM
|
#9 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Alright thanks for the help, if I have any more questions I'll let you know
|
|
|
09-28-2007, 02:59 PM
|
#10 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
if i have a form already made doc file using form fields, is there any way i can transfer that over to the page so i dont have to recreate the form?
|
|
|
09-28-2007, 08:01 PM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
I might sound stupid, but I don't quite understand what are you trying to say here, really...so I'll try to break this down in more understandable sections...
ok, you have a form: <form></form>
Quote:
|
already made doc file using form fields
|
That means you'll save the content of your form in a .doc file?
Quote:
|
is there any way i can transfer that over to the page
|
what page? this page that has the form in in or other page used to display the content of the .doc file?
Quote:
|
so i dont have to recreate the form?
|
what do you mean by that?
really, I would like to help you, but, please, try to understand me, it's hard to give answers based on guessing...
|
|
|
09-29-2007, 12:41 AM
|
#12 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Sorry. What I mean is I have a .doc file with a form on it, well kinda, it has the template that I would like to use as the form. Is there a way I can make that the form on the webpage, the .doc file uses form fields, if you would like to see what I'm talking about I can put up a link to the .doc file and you can download it and look at it.
|
|
|
09-29-2007, 05:50 AM
|
#13 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
That will be perfect!
|
|
|
09-29-2007, 03:15 PM
|
#14 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
|
|
|
09-29-2007, 03:36 PM
|
#15 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
And you want to save the content from the form fields in a doc file, formatted like that?
And then, when you read that file, I mean when you want to display its content in a web page you want to display it the way it is formatted in the doc file, right?
Something like Crystal Reports do?
|
|
|
09-29-2007, 04:30 PM
|
#16 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
I want to use that as the form on the site I'm working on. Yes. Never heard of Crstal Report, but I will do a search and check it out.
|
|
|
09-29-2007, 04:33 PM
|
#17 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
ok! Because I need to know for sure exactly what is that you want (need). I don't like guessing... 
|
|
|
09-30-2007, 02:55 AM
|
#18 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Sorry the form I put a link to isn't everything I had on it, I fixed it and put the other one in place of it, so you can redownload it to see the rest of it. Also I can't try out Crystal Reports because you have to have a business to try it.
|
|
|
09-30-2007, 03:26 AM
|
#19 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,927
|
Crystal Reports was just an example, something like binding data from database into a web page.
The best solution (IMO) to do what you need is a database to store all the data you need. This way, you'll be able to access any of your records based upon an ID or a name or anything you want.
Storing data in a file for a later access is not always considered as "best practice" and I don't recommend it to you in this case.
Every web hosting company offer support (free, I think) for a MySQL database. You can use PHP to access the data from your database and display it in your web page.
|
|
|
09-30-2007, 04:03 AM
|
#20 (permalink)
|
|
Inactive
Join Date: 09-25-07
Posts: 13
Latest Blog: None
|
Ok, well I don't really know much about MySQL, do you know of a good site I can get the info I need to do this? Also anywhere I can get the info to use PHP to access the data.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:39 AM.
© Copyright 2008 V7 Inc
|