Hello all,
For my website I am trying to make a form where people can locate there homes using a Google Maps map with a draggable marker. After submitting the form the data will be stored in the database.
I have the following code and placed it in the 'Custom Element (HTML/PHP)'.
In the 'Events' tab I have in the 'On Load' the 'Show HTML'. In the 'On Submit' I have placed the 'DB Save'. In there I selected the table where it has to sore all the data.
After submitting the form I took a look at my database and I noticed that the coordinates are not saved to the database. The rest of the data (a small description that people can write) is saved to the database.
Can someone help me with this?
Regards,
Ruud
For my website I am trying to make a form where people can locate there homes using a Google Maps map with a draggable marker. After submitting the form the data will be stored in the database.
I have the following code and placed it in the 'Custom Element (HTML/PHP)'.
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="styles.css" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
</head>
<body>
<div id="canvas"></div>
<br />
<form name="form1" method="post" action="">
<label for="latitude"><b>Latitude:</b></label>
<input readonly="readonly"id="latitude" type="text" value="" />
<label for="longitude"><b>Longitude:</b></label>
<input readonly="readonly" id="longitude" type="text" value="" />
<br />
<label><b>Omschrijving:</b></label><br />
<TEXTAREA NAME="description" id="description" COLS=40 ROWS=6></TEXTAREA>
<br />
<input type="submit" name="Submit" value="Submit">
<script type="text/javascript" src="gmap.js"></script>
</form>
</body>
</html>
In the 'Events' tab I have in the 'On Load' the 'Show HTML'. In the 'On Submit' I have placed the 'DB Save'. In there I selected the table where it has to sore all the data.
After submitting the form I took a look at my database and I noticed that the coordinates are not saved to the database. The rest of the data (a small description that people can write) is saved to the database.
Can someone help me with this?
Regards,
Ruud