You are here:  » using jump code on same page

Support Forum



using jump code on same page

Submitted by mally on Thu, 2008-11-20 13:49 in

Hello David

I'm trying to add jump to the top of my page to send people to the price table which is below the crease of the page.

Can you please xplain how to do this.

I'm currently trying the following code (needs to be within the with statement) but its coming back with an error statement.

Can you help?

<?php if ($min <> 9999)
{
  print $description;
  print "<a href="#prices">See price table</a>";
}
?>

Thanks

Mally

Submitted by support on Thu, 2008-11-20 13:54

Hi Mally,

It's the double-quotes in your A tag breaking the string. Using single quotes will work fine:

  print "<a href='#prices'>See price table</a>";

Cheers,
David.

Submitted by mally on Thu, 2008-11-20 14:16

Great stuff

Thanks

Mally