Click to See Complete Forum and Search --> : passing variables via a href...


angrytuna
03-27-2003, 04:44 PM
Hello the forum,

I've got a page, call it "mypage.php", that extracts all POST variables via PHP, and displays content based on the value of said variables. In the same page, I've got images acting as buttons, aka:

<a href="mypage.php"><img src=(yada yada)></a>


So I'm looking to create a set of image buttons to send the page back to itself, only with a different set of POST variables based on the button chosen.

My problem is, I can't post variables using the <a href> tag(as far as I know), and I can't display images using a form tag, because <input type=image> is not supported by netscape.

Any suggestions?

~AT

khaki
03-27-2003, 05:13 PM
Hi angrytuna...

Passing the variables in the queryString is not an option?
Seems like it would work to me.

<a href="mypage.php?buttonImg=yada_yada"><img src="yada_yada_button.gif"></a>

... or does that not work with a PHP page (i have no idea)?

?
k

angrytuna
03-27-2003, 06:03 PM
Well now I just feel dumb. Yes, that'll work great. Thanks, khaki

~at

PS: how's the weather in Jersey?

khaki
03-27-2003, 06:08 PM
no need to feel dumb.

i'm still trying to figure out what makes a tuna feel angry (lol)

happy khaki...
:) k

EDIT: the weather in Jersey is wonderful! that's why i feel so happy!

angrytuna
03-27-2003, 06:37 PM
Wish I could say the same. It's raining here at the moment.
Tunas are angry creatures. Have you ever seen one smile? :)
Besides, JoyfulTuna didn't have quite the ring...