a get post exatract form question

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

a get post exatract form question

Post 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. :?:
PhPhreakOut
Forum Newbie
Posts: 3
Joined: Fri Nov 20, 2009 6:38 pm

Re: a get post exatract form question

Post 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
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

Re: a get post exatract form question

Post 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
Post Reply