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

$img = intval($_GET['img']);
echo "<form class='form' action='zoom.php?img=$img' method='post'>";
Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.