🔒 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
  • 646
    Views
  • 2
    Participants
Last reply from:
Pusoy000

Trending Topics

Online now

Members online
367
Guests online
7,973
Total visitors
8,340

Forum statistics

Threads
2,341,656
Posts
29,323,668
Members
1,114,736
Latest member
itzharvhy123
Back
Top