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.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte auf meiner Homepage einen Warenkorb erstelle, der auch somit schon fertig ist. Nun wenn ich dann am schluss auf Absende klicke, dann sollte eigentlich die Daten an meine GMX-Adresse gesendet werden, aber bei mir kommt folgende Meldung:

Method Not Allowed

The requested method POST is not allowed for the URL /warenkorb.html.

Was ist das?

Was muss ich machen?

Hier mal einen kleinen Auszug der warenkorb.html-Datei:

<body bgcolor="#ffffff" text="#000000" link="#003194" vlink="#003194">

<font face="Arial,Helvetica,MS Sans Serif">

<b>Warenkorb / Bestellseite</b>

<ol>Hier sehen Sie Ihre Bestellung.

<p>

<form action="" method=POST>

<table border=1 cellspacing=3 cellpadding=3>

<tr><td width=20>Menge</td><td width=150>Artikel</td><td width=50>Preis</td></tr>

<script language="JavaScript">

gesamtpreis = 0;

for (i=0;i<parent.mengen.length;i++)

{

document.write('<tr><td>' + parent.mengen + '</td><td>' + parent.artikel + '</td><td align=right>' + parent.preise + '</td></tr>');

document.write('<input type=hidden name=\"Positon' + (i + 1) + '\" value=\"' + parent.mengen + ' ' + parent.artikel + ' ' + parent.preise + '\">');

gesamtpreis = gesamtpreis + (parent.mengen * parent.preise);

}

gesamtpreis = gesamtpreis * 100;

gesamtpreis = Math.round(gesamtpreis);

gesamtpreis = gesamtpreis / 100;

document.write('<tr><td colspan=2 align=right>Gesamtpreis:</td><td align=right>' + gesamtpreis + '</td></tr>');

</script>

Danke für eure Hilfe!

Gruss

<form action="XXX" method=POST>

Du musst im form-tag ein serverseitiges script definieren, wohin die Daten gesendet werden und welches dann z.B. den mailversand für dich übernimmt. Html kann das nicht.

Les mal: http://de.selfhtml.org/html/formulare/definieren.htm

Dazu geben Sie beim Erstellen eines Formulars an, was mit den Daten des ausgefüllten Formulars passieren soll. Sie können die Daten dann von einem CGI-Programm auf dem Server-Rechner weiterverarbeiten lassen.

Bearbeitet von bigvic

oh je, wie geht denn das? hab so etwas noch nie gemacht.

Hallo,

nochmals danke für die schnelle Antwort.

Dann hab ich ja jeztt etwas zu tun *g*

gruss

Html kann das nicht.

Das ist so nicht ganz richtig, man kann in Action auch ein "mailto:" einbauen

<form action="mailto:deine@adresse.de"  method="post"  name="Formular"  enctype="text/plain">

Ist zwar nicht schoen aber es geht ;)

Ted

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.