Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Submit mit JPEG ?!

Empfohlene Antworten

Veröffentlicht

Tag @all,

kann mir jemand sagen, wie ich einem Bild das "submit" attribut übergeben kann ?

Unten hab ich mal 2 Beispiele. Ich möchte nicht so blöde HTML Buttons, sondern ich möchte lieber das JPEG auf dem 2. Beispiel benutzen... Leider funkt das mit dem Submiten nicht bzw. ich weiß nicht wie ich das machen soll ?!

Kann mir einer helfen ?

Danke schon mal im voraus.


<html>

<head>

</head>


<body>

<form action="auswertung.php" method="post">

<input type="Text" name="vorname">

<input type="submit">

</form>


</body>

</html>


<html>

<head>

</head>


<body>

<form action=action="auswertung.php" method="post">

Name:

<input type="text" name="vorname"> 

<img src="senden.jpg" width="145" height="42">

</form>



</body>

</html>

@Tachyoon

Danke für die schnelle Antwort ;-) 1. habe ich ja auch in mein beispiel, aber was ist mit 2. ??? Das bekomme ich nicht hin *heul*

Spufy

Das könnte mit JS gehen:

onClick="submit()";

Da gibts zwei Möglichkeiten. Entweder du verwendest CSS, das ist die Elegante, nämlich mit


<input type="submit" 

 style="width=300; 

 height=100; 

 background-url(background1.gif);

 border-width:1px;

 border-style:solid;

 border-color:#000000">

als Tag im Button. Da kann man auch noch andere Formatierungen machen, schau mal Unter SelfHTML.

Oder du liest die Formularfelder mit JavaScript aus, und übergibst sie mit einem Input type="button" als get-Methode, was aber bei weitem ungeschickter wäre.

Man kann da mit onclick was drauflegen, aber dann die Werte zu übergeben ist umständlich. Zumindest hats bei mir mal nicht gefunzt. Kann sein, das ich Blödsinn gebastelt hab, aber mit CSS gings dann bei mir.

HI @all,

also das mit dem CSS funkt nicht so wirklich :-(


<form action=action="auswertung.php" method="post">

Name:

<input type="submit"

 style="width=300;

 height=100;

 background-url(senden.jpg);

>

Er Zeig mit nicht das bild an ?! Und wenn ich das absende funkt das auch nicht ?

Spufy

Wie ist das eigentlich wenn ich das so mache ???


<form action="auswertung.php" method="post">

<input type="text" name="vorname"> 

<a href="auswertung.php?v_name=vorname"><img src="senden.jpg" width="145" height="42" border="0"></a>  

***auswertung.php?v_name=vorname*** Stimmt es wie ich es hier übergeben 

habe ???

</form>

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.