Re: is there an alternative to this code?
| From: | Jeff Bluemel | Date: | Tue, 08 Oct 2002 03:07:53 +0000 |
| Subject: | Re: is there an alternative to this code? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119197@lists.php.net to get a copy of this message | ||
ok - I played with this, and found this to work (but I have no idea why).
is there a good webpage that give good information on the variable, and
html? I have the code working, but I really have no idea how this stuff
works together like it does. I would be very interested in some place I can
get a detailed explaination html variable, and how to php integrates with
it.
<TD><A HREF="<?=$PHP_SELF?>?link=CS"><IMG
SRC="images/cs-bttn.jpg"
border="0"></a></TD>
IF ($_GET['link'] == "CS")
{ ?>
<TD><IMG src="images/green.jpg" border="0"></TD>
<TD><a href="cs/ppin.phtml" target="contents"><IMG
src="images/ppin.jpg"
border="0"></a></TD>
<TD><a href="cs/pin.phtml" target="contents"><IMG
src="images/pin.jpg"
border="0"></a></TD>
<TD><a href="cs/pani.phtml" target="contents"><IMG
src="images/pani.jpg"
border="0"></a></TD>
<TD><a href="cs/ani.phtml" target="contents"><IMG
src="images/ani.jpg"
border="0"></a></TD>
<TD><IMG src="images/green.jpg" border="0"></TD>
<? }
"Justin French" <justin@indent.com.au> wrote in message
news:B9C87F02.134CB%justin@indent.com.au...
> Alignment of elements in a table or form is really a HTML/CSS question.
> Just to make matters worse, I have problems with aligning in IE, but not
> NN... so perhaps there is no way to get it all working... try a HTML or
CSS
> group.
>
> Instead of a form, you could just have a clickable image, with any vars
you
> need in GET, not POST:
>
> <A HREF="<?=$PHP_SELF?>?<?if($QUERY_STRING){ echo $QUERY_STRING
> ."&"}?>myvar=myvalue"><IMG SRC="images/cs-bttn.jpg"
> border="0"></a>
>
> or perhaps what you want in your case is:
>
> <A HREF="<?=$PHP_SELF?>?<?if($QUERY_STRING){ echo $QUERY_STRING
> ."&"}?>CS=
> Customer Service"><IMG SRC="images/cs-bttn.jpg"
> border="0"></a>
>
> ????
>
> Depends what you want to achieve on the next page.
>
>
> Justin French
>
>
>
>
> on 08/10/02 11:13 AM, Jeff Bluemel (jeff@domintcom.com) wrote:
>
> > I would like to do this without using a form... is there a way I can
recode
> > this?
> >
> > I have the following table... the button that originates from a form is
out
> > of alighnment, and sits higher then the rest. how do I solve this?
> >
> > <TD><a href="main.phtml" target="_top"><IMG
> > SRC="images/home-bttn.jpg"
> > border="0"></a></TD>
> > <TD>
> > <form action="<?=$PHP_SELF?><?if($QUERY_STRING){ echo"?".
> > $QUERY_STRING;}?>" method="POST">
> > <input type="image" src="images/cs-bttn.jpg" value="Customer
> > Service"
> > name="CS" >
> > </form>
> > </TD>
> > <TD><IMG src="images/rating-bttn.jpg"></TD>
> > <TD><IMG src="images/batch-bttn.jpg"></TD>
> > <TD><IMG src="images/admin-bttn.jpg"></TD>
> > <TD><a href="logoff.php" target="_top"><IMG
> > src="images/logoff-bttn.jpg"
> > border="0"></a></TD>
> >
> > --
> > Jeff Bluemel
> >
> >
> >
> > --
> > Jeff Bluemel
> > office (307) 787-6962
> > cell (307) 780-6962
> > fax (307) 787-6963
> >
> >
>