+ 2

hi programmer!! I have a question and make me so confusing

how did i make a button and when we click the button.. we'll Access To Other Page?? pls answer

16th Mar 2018, 2:58 AM
Leafy
Leafy - avatar
9 ответов
+ 7
Try this: <a href="other.htm"><button>Go to other page</button></a>
16th Mar 2018, 3:05 AM
Ipang
16th Mar 2018, 3:35 AM
Manorama
Manorama - avatar
+ 2
thank You!!
16th Mar 2018, 3:39 AM
Leafy
Leafy - avatar
+ 1
To Link?? but Im Still Confusing
16th Mar 2018, 3:05 AM
Leafy
Leafy - avatar
+ 1
oh yeahhh. if we want to access to other Page.. but not Link. when we click.. my code html will access after im click the button?
16th Mar 2018, 3:12 AM
Leafy
Leafy - avatar
+ 1
u can tell me the code? pls im still newbienewbie
16th Mar 2018, 3:18 AM
Leafy
Leafy - avatar
0
use <form method=get action="path of file which you want to access after clicking on button" <input type=submit /> </form>
16th Mar 2018, 3:02 AM
Manorama
Manorama - avatar
0
if you want to simply use html for navigation between webpages ,just use @Ipang code But in your question , u specified php, so use action attribute in <form >
16th Mar 2018, 3:14 AM
Manorama
Manorama - avatar
0
<form method=get/post action="http://servername/filename.php" if web server is running on your system
16th Mar 2018, 3:18 AM
Manorama
Manorama - avatar