Saturday, July 10, 2010

Re: Simple PHP add marker form

On Jul 10, 3:46 am, David <dme...@skabeep.com> wrote:
> Hello all,
>
> I am creating an iphone app that maps information into an embeded
> google map.
> I want a php form that just enters the title, description, and
> location of a marker using the "POST" and "GET" methods in php. My
> iphone app is currently set up to fill out a form and send the
> information to a text file using the "POST" method. I do not need any
> user interface because it is done behind the scenes.
>
> Here are some examples of my current php form.
>
> <?php
>
> $user = $_POST['user'];
> $happy = $_POST['happy'];
> $time = $_POST['time'];
> $lat = $_POST['lat'];
> $lngt = $_POST['lngt'];
>
> //the data
> $data = "$user | $happy | $time | $location \n";
>
> //open the file and choose the mode
> $fh = fopen("log.txt", "a");
> fwrite($fh, $data);
>
> //close the file
> fclose($fh);
>
> ?>
> The printed text for "$happy" will be the title of the marker.
> The printed text for "$time" will be in the description of the
> marker.
> "$lat" and "$lngt" are for the location of the marker in the map.
>
> Could someone make this form for me?
> Thanks!

You can use php form creator software. For example
http://phpforms.net/tutorial/html-basics/php-forms.html, or another
one. But make sure your server meets script requirements

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate