PHP help required

  • planetsap
  • Novice
  • Novice
  • planetsap
  • Posts: 17

Post 3+ Months Ago

I am new to web development and need help from the gurus:

I like to list items and link it to the contents that is on the same webpage:
eg.: 1. goto 'Paragraph 1'.
2. goto 'Paragraph 2'.
3. goto 'Paragraph 3'.

Paragraph 1: blah blah blah.....

Paragraph 2: blah blah blah.....

Paragraph 3: blah blah blah.....

How do i code to list and when I click on item 2, it should take me to Paragraph 2. I am familiar with how to link to a new page.

Thank you in advance.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8399
  • Loc: USA

Post 3+ Months Ago

Code: [ Select ]
<p><a href="#par1">Go to 'Paragraph 1'</a><br />
<a href="#par2">Go to 'Paragraph 2'</a></p>

<h1 id="par1">Header</h1>
<p>Paragraph 1</p>

<h1 id="par2">Header</h1>
<p>Paragraph 2</p>
  1. <p><a href="#par1">Go to 'Paragraph 1'</a><br />
  2. <a href="#par2">Go to 'Paragraph 2'</a></p>
  3. <h1 id="par1">Header</h1>
  4. <p>Paragraph 1</p>
  5. <h1 id="par2">Header</h1>
  6. <p>Paragraph 2</p>

And the list is manual... unless you want to make this automated and then you are talking about a sort of a CMS (Content Management System).
  • planetsap
  • Novice
  • Novice
  • planetsap
  • Posts: 17

Post 3+ Months Ago

Thank you Bogey.

Sincerely appreciate your help.

Best Regards.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 86 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.