View Single Post
  #1  
Old 05-23-2012, 03:12 AM
dulop's Avatar
dulop dulop is offline
Member
 
Join Date: May 2012
Posts: 26
Gender: Male
Credits: 6,369
dulop is on a distinguished road
Default Making a map... help!

Hello.
i have seen the tutorial "Exploring system" from PTGigi.

I understand it, but i have a problem.

When i put "hello" (for example) in the article content, the pages works fine and show "hello".

PHP Code:
$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$num $_GET["num"];
$num preg_replace("/[^a-zA-Z0-9\\040.]/"""$num);
$num secure($num); 

if (
$act == ""){
$article_title "Magical Forest!";
$article_content "Hello";

But when i try to put a map, the pages become white D: and don't work!

PHP Code:
$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$num $_GET["num"];
$num preg_replace("/[^a-zA-Z0-9\\040.]/"""$num);
$num secure($num); 

if (
$act == ""){
$article_title "Magical Forest!";
$article_content "
<html>
<head>
</head>
<body>
<map name="
mapa1">
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="419,93,448,121" href="www.digiforos.net"> 
 <area alt="
Pulsa para ver la página de mis amigos" shape="rect" coords="64,32,96,64" href="www.digiforos.net"> 
 <area alt="
Pulsa para ver mi novia" shape="rect" coords="450,37,480,67" href="www.digiforos.net"> 
 <area alt="
Pulsa para conocer a mi Familia" shape="ret" coords="129,158,164,190" href="www.digiforos.net"> 
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="481,195,510,223" href="www.digiforos.net">
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="353,256,386,288" href="www.digiforos.net"> 

 </map> 
<img src="
www.digiforos.net/digiadoptables/historia/ciudad.png"alt="Mapa de imágenesPulsa en cada una de los círculos." border="0" usemap="mapa1"> 
</body>
</html>"
;

I have been all night trying to fix, but i can't :S

Please can you help me? thanks

Last edited by dulop; 05-23-2012 at 03:20 AM.
Reply With Quote