473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to submit form without using get/post method

254 100+
Hi

I have four textbox in form and I want to submit the form without using post or get method in php how can I do that.
Mar 14 '08 #1
7 2117
Markus
6,050 Expert 4TB
Hi

I have four textbox in form and I want to submit the form without using post or get method in php how can I do that.
Why would you want to do that?
Mar 14 '08 #2
ronverdonk
4,258 Expert 4TB
Hi

I have four textbox in form and I want to submit the form without using post or get method in php how can I do that.
The whole point of a form is to submit it, i.e. pass its filled in data to a script for further processing. Why else would you want to use a form?

And when you use a form, you either GET or POST it. No third option.

Ronald
Mar 15 '08 #3
satas
82
And when you use a form, you either GET or POST it. No third option.
In fact, there is one more option "PUT".
PUT method works only when PHP acts not as module for Apache but as CGI.
Here are more information about this method:
http://www.science.uva.nl/ict/guides.../index_en.html
http://php.net/manual/en/features.fi...put-method.php
Mar 15 '08 #4
ronverdonk
4,258 Expert 4TB
In fact, there is one more option "PUT".
PUT method works only when PHP acts not as module for Apache but as CGI.
Here are more information about this method:
http://www.science.uva.nl/ict/guides.../index_en.html
http://php.net/manual/en/features.fi...put-method.php
Ok, you are right satas! But the use of CGI never crossed my mind. So I wonder what the OP's reply is.

Btw: OP talked about using text fields in a form, and that is where you only have 2 options POST and GET.
method = get|post [CI]
This attribute specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are "get" (the default) and "post". See the section on form submission for usage information.
Ronald
Mar 15 '08 #5
satas
82
Btw: OP talked about using text fields in a form, and that is where you only have 2 options POST and GET.
According to the first link from my previous post it is possible (but not recommended by W3C, of course) to use PUT method for sending form data.
But i can't imagine any reasons for programmer to use PUT instead of recommended methods too.
Mar 15 '08 #6
mukeshrasm
254 100+
Why would you want to do that?
some one asked me how can i do this using php in interview and i don't know. so is there any method to do that or he just ask me to know whether i knew it or no.

If there is any method please tell me!
Mar 17 '08 #7
ronverdonk
4,258 Expert 4TB
You obviously missed some posts here. Look at the last posted reply by satas.

Ronald
Mar 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open...
2
by: Matt | last post by:
Can form.submit() submit another form? In the following example, in page1.asp, it is fine to submit the current form: form1.submit(), and and I could see the value "Joe" in page2.asp. However, if I...
8
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform"...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
8
by: bettina | last post by:
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form...
1
by: kkuniya | last post by:
Situation : - A form (method : POST, action : itself, onsubmit : alert 'Submit' ) - Got 2 submit button ( 'Save' , 'View') - Got navigation 1|2|3|4 What I want to do : - Once clicked on the...
4
by: j1dopeman | last post by:
Hi, I'd like to use a button to save and then submit a form. I can set the onlick of the button to mahButton_click or submit, but I can't figure out how to do both. It looks like c# can't...
11
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.