echo" //i need this echo;
<form class='form' action='zoom.php?img=<?php echo intval($_GET['img']);?>' method='post'> //i dont need echo in here
";

i also tired 
action='zoom.php?img= intval($_GET['img'])'
action='zoom.php?img=$_GET['img'])'

but no luck 

it give me syntar error every time

Recommended Answers

All 2 Replies

$img = intval($_GET['img']);
echo "<form class='form' action='zoom.php?img=$img' method='post'>";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.