🔒 Closed Change the source of content pag click ng button sa sidebar

Status
Not open for further replies.

deepneck

Forum Guru
Hello po sa mga marurunong sa web dev dito. Baka may masusuggest kayong tutorial para sa problema ko. Beginner lang po ako sa css, php.

Paano po ba mabago yung source ng content ng page pag nagclick ako ng sidebar. Ano po ba language kelangan gamitin para po don, javascript or jquery po ba? Salamat po ng madame sa mga mkakapag share!

heeelp.webp
 
Paki ayos pag explain di ko magets🤣


You mean mag palit ng content yung page?

Yung a tag lagyan mo href

Tas gawa ka new file name mo ng iba example page2.php

Sa href mo lagay mo page2.php

Tas yun laman na ng page ay nasa page 2
 
ang gusto ko po kaseng mangyare is hindi mawawala yung sidebar pag nagclick ako ng button. mismong content lang po
 
[XX='deepneck, c: 1125289, m: 1691599'][/XX] edi copy mo yung nav sa page2 tas edit mo content


or use jquery fetch mo yung content tas remove old tas add new
 
ibig nyo po bang sabhin is ihide ung panel pagkaclick ng hamburger ng button .kung un .bali gawan po sya ng function gamit js or pwede m rin sya icss n lng
 
pa tingin file structure mo sir. tignin ko d mo ginagamit ung include() function ng PHP, d mo kailangan eh copy/paste ung nav bar mo sa bawat page na gagawin mo kasi may include() function naman ung PHP.

example
Code:
include("header.php");<-- dito naka lagay ung sidebar mo na may href sa pages

content here

include("footer.php");
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 654
    Views
  • 4
    Participants
Last reply from:
deepneck

Trending Topics

Online now

Members online
1,070
Guests online
833
Total visitors
1,903

Forum statistics

Threads
2,274,941
Posts
28,959,487
Members
1,233,488
Latest member
lea11sales
Back
Top