🔒 Closed Relax brain muna ako

Status
Not open for further replies.

Pusoy000

Forum Veteran
Nagtatanong nalang ako mga ka phc mag debug kasi utak ko habang makatulog hehe.. Dimuna ako mag iisip tanong kunalang dito alam kong maraming marunong

My question: paano ba mag condition habang naka <a href="addsample.php"> Add new user </a>

-> hindi kasi Pwedi kahit lag yan mo si ng name sa <a> di kasi gumagana dapat kasi naka button/submit hehe imagine nalang po may form dyan.. pano bato tulog muna ako.
 
yung function mo nasa addsample.php? lagyan mo action attribute yung form mo.
ex:
<form action="addsample.php" method="post">
.....
<button> Add New User </button>
</form>

kung ang goal mo lang naman mapunta sa ibang page gamit button:
<a href="addsample.php"> <button> Add New User </button> </a>
 
yung function mo nasa addsample.php? lagyan mo action attribute yung form mo.
ex:
<form action="addsample.php" method="post">
.....
<button> Add New User </button>
</form>

kung ang goal mo lang naman mapunta sa ibang page gamit button:
<a href="addsample.php"> <button> Add New User </button> </a>
yaahh haha yan nangalang ginamit ko pre
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 599
    Views
  • 2
    Participants
Last reply from:
Pusoy000

Online now

Members online
946
Guests online
1,589
Total visitors
2,535

Forum statistics

Threads
2,276,195
Posts
28,968,223
Members
1,231,159
Latest member
Cuong Pham
Back
Top