Ik heb mijn
voorbeeld iets aangepast, misschien wordt het dan duidelijker voor je.
Dit is de broncode van mijn pagina:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
print_r ($_GET);
}
?>
<form action="htmltest.php" method="get">
<input id="image" name="image" type="image" src="images/alex3.jpg">
<input id="test" name="test" type="text">
<input id="submit" name="submit" type="submit" value="submit" tabindex="-1">
<input readonly="readonly" type="text"><input readonly="true" type="text"><input disabled type="text">
</form>
</body>
</html>
In jouw broncode:
<?php
$x = $_GET['image.x'];
$y = $_GET['image.y'];
$arr = array($x, $y);
$array = array( image_x=>$x , image_y=>$y );
print_r($array);
?>
zou je het zo kunnen doen:
<?php
$x = $_GET['image.x'];
$y = $_GET['image.y'];
$arr = array($x, $y);
print_r($arr);
?>
ok ik ben eruit :P
ik deed: $_GET['image.x']
maar goed is: $_GET['image_x']
(underscore ipv punt)
bedankt voor je hulp en voorbeelden!
Het zijn de kleine dingen die het doen ;-)
inderdaad :-) altijd problemen mee :P
' of " bijvoorbeeld (of . / - natuurlijk ;-) )