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

Trending Topics

Online now

Members online
1,231
Guests online
1,634
Total visitors
2,865

Forum statistics

Threads
2,286,357
Posts
29,037,321
Members
1,217,900
Latest member
Johnnynattsville
Back
Top