linux-l: cgi, forms & submit
Harald Boehme
boehme at informatik.hu-berlin.de
Mo Mai 25 13:35:07 CEST 1998
Hi
> hintergrund:
> ich mache eine form mit mehreren submit-buttons. dies sieht
> folgendermaszen aus:
>
> <FORM METHOD=POST ACTION=skript.py>
> <INPUT TYPE=SUBMIT NAME=MODUL VALUE=x>
> <INPUT TYPE=SUBMIT NAME=MODUL VALUE=y>
> </FORM>
Hier das was der HTML 3.2 dazu sagt:
==============
type=submit
This defines a button that users can click to submit the form's contents to
the server. The button's label is set from the value attribute. If the name
attribute is given then the submit button's name/value pair will be included
in the submitted data. You can include several submit buttons in the form.
See type=image for graphical submit buttons.
<input type=submit value="Party on ...">
type=image
This is used for graphical submit buttons rendered by an image rather than
a text string. The URL for the image is specified with the src attribute. The
image alignment can be specified with the align attribute. In this respect,
graphical submit buttons are treated identically to IMG elements, so you
can set align to left, right, top, middle or bottom. The x and y values of the
location clicked are passed to the server: In the submitted data, image
fields are included as two name/value pairs. The names are derived by
taking the name of the field and appending ".x" for the x value, and ".y" for
the y value.
<p>Now choose a point on the map:
<input type=image name=point src="map.gif">
Note: image fields typically cause problems for text-only and
speech-based user agents!
==============
Sollte also gehen.
MvG
Harald
--
<<<< Harald Böhme, Berlin 10115 >>>>
<<<< Schöhnholzer Str. 19 >>>>
<<<< boehme at informatik.hu-berlin.de >>>>
Mehr Informationen über die Mailingliste linux-l