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.

php: x und y koordinaten eines bildes

Empfohlene Antworten

Veröffentlicht

hi und hallo,

ich kenne in asp den code um an die x und y koordinate eines als <input type="image"> definierten bildes zu kommen.

leider finde ich nirgends etwas darüber wie das in PHP geht,

ahnung??

vielen dank

wow, dann gibts doch mal was was ASP PHP voraus hat ;)

werd mir mal die JS variante anschaun, weiss aber heute schon dass ich (wegen meinem SAFARI kollegen) bald wieder fluchen am boden liegen werde ;)

danke!

ja wirklich? dacht ich mir doch, aber ich komm nich ran..

beispiel

<form name="test" action="test.php" method="post">

<input type="image" name="theImage">

</form>

wie komme ich dann auf der test.php seite an die x-y coords?

ich habe einiges probiert. leider ohne erfolg

$_POST['theImage']

$_POST['theImage.x']

$_POST['theImage.y']

.

.

.

Hmm mich wunderts das das bei ASP geht :)

Weil wie will er die Koordinaten des Buttons vor Anzeige wissen?

Auflösungsabhängig, größe des Anzeigefensters abhängig.

Aber ich lerne auch gerne dazu :)

ahja cool. das gefällt.

danke!

schreib mir doch mal wo jetzt die Daten drin stehen.

Auch als außenstehender will man was lernen :)

sorry, hab ´mich so darüber gefreut dass ich vergessen hab das ganze noch richtig aufzulösen.

hier nochmal der komplette code der php seute "test.php":


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<html>

<head>

	<title>Untitled</title>

</head>


<body>

<form name="test" action="test.php" method="post">

<input type="image" name="theImage">

</form>


<?

echo($_POST['theImage_x']);

echo($_POST['theImage_y']);

?>


</body>

</html>


Ah thx.

Wieder was dazu gelernt :)

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.