Page 1 of 1
a get post exatract form question
Posted: Fri Nov 20, 2009 6:22 pm
by vin_akleh
is the value legal
Code: Select all
<input type="image" src="'.$maxurl['image'].'" value="'.$maxurl["link_id"].'" width=150 height= 200/>';
and if i extract($_post)
what will the value look like so i can use it in such form????
Code: Select all
$q=mysql_query("select * from lnn where title like "$maxurl["link_id"]"");
what should i use instead of $maxurl["link_id"] ???
thanks in advanced.

Re: a get post exatract form question
Posted: Fri Nov 20, 2009 6:49 pm
by PhPhreakOut
I'm not sure exactly what you're trying to do here. But if you want to pass a piece of info about your image back to the server in the _$POST variable, one good way is to use a hidden form element.
For example, you could do something like this:
<input type="hidden" name="myreturnvalue" value="<?php echo $maxurl["link_id"]; ?>">
The image tag is designed to show an image, not to pass data.
I hope this helps.
Jesse LaVere
PHP Consultant
Re: a get post exatract form question
Posted: Fri Nov 20, 2009 6:54 pm
by vin_akleh
PhPhreakOut wrote:I'm not sure exactly what you're trying to do here. But if you want to pass a piece of info about your image back to the server in the _$POST variable, one good way is to use a hidden form element.
For example, you could do something like this:
<input type="hidden" name="myreturnvalue" value="<?php echo $maxurl["link_id"]; ?>">
The image tag is designed to show an image, not to pass data.
I hope this helps.
Jesse LaVere
PHP Consultant
this is good, but also if i extract it what will the variable look like? what is the name of the variable??? will it be $maxurl[link_id]
because i wanna use it in a mysql_query