View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
The GET method uses the query string portion of the URL:
 
 
The above URL is what will be sent anyway if you create a form which uses the GET method and contains two fields, first and last:
 
<form action="show_cgi.fwx" method="GET">
<input type="text" name="first"><input type="text" name="last"><br>
<input type="submit" value="Submit">
</form>
 
Sending POST data from a link requires javascript code:
 
<form action="http://localhost/show_cgi.fwx" method="POST" name="myform">
<input type="hidden" name="first" value="Mike">
<input type="hidden" name="last" value="Pena">
</form>
<a href="#" onclick="document.myform.submit()">Submit</a>

In the above example, note how the desired values are set in hidden form fields.  The link simply causes the browser to submit the form.

FoxWeb Support Team
support@foxweb.com email

Sent by Michael Pena on 01/20/2003 02:05:36 AM:
Is it possible to submit data using GET or POST without using the Form or Submit button.   Or is it possible to use a Text Link to Submit data?
 
-Mike-