<IMG SRC="test2.php">
hello guys,
i want to pass the parameter to the php file
like
<IMG SRC="test2.php,50">
how to pass this and give any snippet to add in the php to accept the parameter.
thanks in advance.
pass parameter to php file
Moderator: General Moderators
-
sujithtomy
- Forum Commoner
- Posts: 46
- Joined: Tue Mar 24, 2009 4:43 am
Re: pass parameter to php file
Hello,
HTML
PHP @ test2.php
HTML
Code: Select all
<a href="test2.php?val=50"><img src="image.jpg"></a>Code: Select all
<?php
$val = $_REQUEST['val'];
echo $val; // displays the value 50
?>
Re: pass parameter to php file
thank u sujithtomy.