How to send map to other page

24 views
Skip to first unread message

JARS

unread,
Aug 3, 2009, 10:16:49 PM8/3/09
to imgmap-discuss
Hello friends,

I try and try send to other page map generated in imgmap. But don't
work.

How send map to other page? Using method POST

Thanks

Greetings from Costa Rica

Adam Maschek

unread,
Aug 5, 2009, 1:17:33 PM8/5/09
to imgmap-discuss
Hi,

Can you be more specific? Where is the form you want to submit?

JARS

unread,
Aug 7, 2009, 1:16:09 PM8/7/09
to imgmap-discuss

Hi,

The form work in editor for newsletter. And need send image map to
save in database.

Adam Maschek

unread,
Aug 7, 2009, 1:56:34 PM8/7/09
to imgmap-discuss
Hi,

As long as your textarea is inside your form element, and the form has
an action attribute, the generated html should be posted to the given
url.
Can you post your code or point to a demo url?

JARS

unread,
Aug 7, 2009, 3:29:35 PM8/7/09
to imgmap-discuss
The URL is: http://www.rodriguezsiles.com/imgmap/

The second file post.php extrac the form all inputs send for POST
method.

I don't understand who extract the map and insert in textarea for send
in POST method.

Thanks for help.

Adam Maschek

unread,
Aug 7, 2009, 3:38:21 PM8/7/09
to imgmap-...@googlegroups.com
Please view the html source of your post.php.
The code is there.

JARS

unread,
Aug 7, 2009, 3:46:46 PM8/7/09
to imgmap-discuss
The code for post.php is simple.

<? echo "html_container = ".$_POST['html_container']; ?>

Extract the content for textarea name html_container. But the form
send in blank this input.

JARS

unread,
Aug 7, 2009, 4:03:09 PM8/7/09
to imgmap-discuss
Thanks, and sorry I don't understand the reply.

Thanks again.

On Aug 7, 1:38 pm, Adam Maschek <adam.masc...@gmail.com> wrote:

Adam Maschek

unread,
Aug 7, 2009, 4:12:44 PM8/7/09
to imgmap-discuss
Jars,

What you see in the browser is one thing. It is the result of the
browser parsing the html source of the page. Since the image map
itself is not a visible element, you dont see it. However if you check
the source (Ctrl + U in firefox, or right click "Ver codigo fonte"),
you see that the actual value of $_POST['html_container'] IS there.
If you want to see it without opening the source view, you should use
print_r($_POST)
in your php code.

Espero que eso va ajudar.

JARS

unread,
Aug 7, 2009, 4:15:26 PM8/7/09
to imgmap-discuss
Thanks now work.

Grattings From Costa Rica

On Aug 7, 1:38 pm, Adam Maschek <adam.masc...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages