Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

submit button

Posted on 1998-12-07
6
Medium Priority
?
257 Views
Last Modified: 2010-04-09
In html file,when I create a form and I when fill the form and submit it ,where this data submits.How can I code submit button to submit data in some file or table.Please explain in detail with code ,I am a learner of HTML.
I am not able to make the form because of submit button.
0
Comment
Question by:neelam_s
6 Comments
 

Author Comment

by:neelam_s
ID: 1840312
Edited text of question
0
 
LVL 4

Expert Comment

by:martinag
ID: 1840313
The form is submitted to a script which is a program running at the server.
It receives everything that you have entered etc and can do almost anything.

Do you have the ability to run CGI at you home page (check with your ISP)? If so, we could work out a solution for you. Otherwise, it will be impossible to create a file at the server etc.

Martin
0
 
LVL 12

Expert Comment

by:Otta
ID: 1840314
While reading this page, you may notice that it has a 'SUBMIT' button.
So, use 'View -> Document Source' (in Netscape)
to look at this HTML, and see how it is done.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Accepted Solution

by:
toTo earned 100 total points
ID: 1840315
> where this data submit ?

2 way to submit data
one is called POST and will submit data in the input file
of the program on the server,
the other is called GET and send the data along the URL
ex http://www.myhost.com/mypage?name=toto&password=xxxx

> How can I code submit button to submit data ...

for both way you can submit data wich where not entered
by the user ( but if he edit the code he can see it )


<FORM ACTION="mypage.html" method=post>
<input type="hidden" name="password" value="xxxxxxx">
<input type=submit value="Carnet d'adresses">
</FORM>

> in some file or table ?
depends from the web server you use ( often impossible if public





0
 

Author Comment

by:neelam_s
ID: 1840316
Thanks for good help,I will try this and will send you result soon.Can you solve one more query regarding this.
What I think is when I post the page ,this page goes to server any specified url as you say but hthere should be the same format of field where it can store the data.I meanwhere it will store name,age,place,(whatever i am entering in form).
0
 
LVL 1

Expert Comment

by:toTo
ID: 1840317
Of course, i would be glad to help you, and your problem
is very interesting, but i am french and see i am not very clear.
What i told you ( and i tested it on my server ) comes from
an O'Reilly book : Web Client Programming with Perl Chapter 3.
I will try to comment your last comment :
What you say is not realy wrong but a bit too simple :
you do not POST page in a form like that, you post the data
in the form, which are submited to the page name in ACTION="..",
but this is not an ordinary page :
either it is a CGI ( comon gatway interface ) or a dynamic page :
a CGI is in fact a regular program the server starts to do the
job but webmasters never let you make it at will because these
programs can do anything on the server : erase files, or even
stop the server ( if badly configured )
a dynamic page is a page which includes special tags <?
what is written betweens thos tags is not to be sent to the
client, those are queries to be executed on the server
and the result will be sent, some server let you run a personal
database that way ( i know a free site in France which offer that)
As you accepted the answer, your question is know lost in PAQs,
i think it would be easier to discuss via mail.
frans@ac-orleans-tours.fr


   

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question