Re: Form ID name
| From: | M Green | Date: | Sun, 07 Apr 2002 18:49:40 +0000 |
| Subject: | Re: Form ID name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91940@lists.php.net to get a copy of this message | ||
If you are using a function as an easy way to add links to your page, i'd
recommend that you
define a function that echoes <a hfref=your function parameter> in that
manner.
/Mattias
"Morten Nielsen" <mosgaard2000@hotmail.com> skrev i meddelandet
news:20020407183631.47916.qmail@pb1.pair.com...
> Hi,
>
> I got a table where I have some images and links (IMG & A). They all have
an
> ID name. Is it possible to access them from a function through a variable?
> If my link looks like:
>
> <A ID="link1" href="#"></A>
>
> then in my function I would like something like:
>
> func1( ) {
> $link=link1;
> $link.href="www.x.com";
> }
>
> Is this somehow possible?
>
> Regards,
> Morten
>
>