TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > PHP

Notices

problems with <a href="<? echo $web; ?>">Website</a>

PHP


Reply
 
Thread Tools Display Modes
Old 07-12-2007, 04:55 PM   #11
Michael Fesser
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

..oO(Kim)

>On Dec 5, 5:35 am, Jen <> wrote:
>> <a href="<? echo $web; ?>">Website</a>

>
>You dont have to echo $web like that. <?=$web?> will do the same, but
>just remember thats only valid for 1 variable - nothing else.


Short open tags are not recommended.

Micha
  Reply With Quote
Old 07-12-2007, 04:55 PM   #12
Guillaume BASSINET
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

Jen a écrit :
> Why oh why does my domain name become part of the link when I use the
> following code.
> <a href="<? echo $web; ?>">Website</a>
> the variable $web is from a user input form.
> Here's what the link looks like
> --http://mysite.com/www.variablesite.com
> All other variables display correctly in
> the table including <a href="mailto:<? echo $email; ?>">E-mail</a>
>
>
>
> TIA,
> jen
>
>

else if you use <?php echo $web, ?> ??
  Reply With Quote
Old 07-12-2007, 04:55 PM   #13
Guillaume BASSINET
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

Jen a écrit :
> Why oh why does my domain name become part of the link when I use the
> following code.
> <a href="<? echo $web; ?>">Website</a>
> the variable $web is from a user input form.
> Here's what the link looks like
> --http://mysite.com/www.variablesite.com
> All other variables display correctly in
> the table including <a href="mailto:<? echo $email; ?>">E-mail</a>
>
>
>
> TIA,
> jen
>
>

else if you use <?php echo $web, ?> ??
  Reply With Quote
Old 07-12-2007, 04:59 PM   #14
Kim
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

On Dec 5, 5:35 am, Jen <> wrote:
> <a href="<? echo $web; ?>">Website</a>


You dont have to echo $web like that. <?=$web?> will do the same, but
just remember thats only valid for 1 variable - nothing else.
  Reply With Quote
Old 07-12-2007, 05:00 PM   #15
Michael Fesser
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

..oO(Kim)

>On Dec 5, 5:35 am, Jen <> wrote:
>> <a href="<? echo $web; ?>">Website</a>

>
>You dont have to echo $web like that. <?=$web?> will do the same, but
>just remember thats only valid for 1 variable - nothing else.


Short open tags are not recommended.

Micha
  Reply With Quote
Old 07-12-2007, 05:01 PM   #16
Guillaume BASSINET
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

Jen a écrit :
> Why oh why does my domain name become part of the link when I use the
> following code.
> <a href="<? echo $web; ?>">Website</a>
> the variable $web is from a user input form.
> Here's what the link looks like
> --http://mysite.com/www.variablesite.com
> All other variables display correctly in
> the table including <a href="mailto:<? echo $email; ?>">E-mail</a>
>
>
>
> TIA,
> jen
>
>

else if you use <?php echo $web, ?> ??
  Reply With Quote
Old 07-12-2007, 05:05 PM   #17
Kim
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

On Dec 5, 5:35 am, Jen <> wrote:
> <a href="<? echo $web; ?>">Website</a>


You dont have to echo $web like that. <?=$web?> will do the same, but
just remember thats only valid for 1 variable - nothing else.
  Reply With Quote
Old 07-12-2007, 05:07 PM   #18
Michael Fesser
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

..oO(Kim)

>On Dec 5, 5:35 am, Jen <> wrote:
>> <a href="<? echo $web; ?>">Website</a>

>
>You dont have to echo $web like that. <?=$web?> will do the same, but
>just remember thats only valid for 1 variable - nothing else.


Short open tags are not recommended.

Micha
  Reply With Quote
Old 07-12-2007, 05:08 PM   #19
Guillaume BASSINET
Guest
 
Posts: n/a
Re: problems with <a href="<? echo $web; ?>">Website</a>

Jen a écrit :
> Why oh why does my domain name become part of the link when I use the
> following code.
> <a href="<? echo $web; ?>">Website</a>
> the variable $web is from a user input form.
> Here's what the link looks like
> --http://mysite.com/www.variablesite.com
> All other variables display correctly in
> the table including <a href="mailto:<? echo $email; ?>">E-mail</a>
>
>
>
> TIA,
> jen
>
>

else if you use <?php echo $web, ?> ??
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 09:56 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional