What's new

Help Button sa loob ng Form element (HTML/CSS/JAVASCRIPT)

Status
Not open for further replies.

librehan

Eternal Poster
Established
Joined
Feb 24, 2019
Posts
775
Reaction
358
Points
276
Good day mga sir, try lang kung meron kayo idea.

HTML/CSS/JAVASCRIPT

ano kayang code pwede para sa button na nasa loob ng form

Form
---------Div
--------------Button

expected function once ma click si button pupunta sya sa 2nd page or different ".html"
ex. Homepage.html to Profile.html

pero kung anchor tag nagana kay button lang hinde. salamat sasagot
 
sa form element meron action attribute. Dun mo lalagay yung URL. tapos yung button type is submit.
thanks sa idea idol. kaso iiba yung name nya prefer ko sana "Log In". anyway thanks. napagod na kase ako kahapon kakasearch try ko ngayong umaga. thanks
 
HTML:
<html>
    <head>
        My Website
    </head>
    <body>
        <form action="secondpage.html" method="POST"> /* add action and method attribute inside the form tag */
            <div class="form-group">
                <input type="text" name="first_name">
            </div>
            <div class="form-group">
                <button type="submit"> /* take note dpat ung button type mo is "submit" */
                    Login/Submit
                </button>
            </div>
        </form>
    </body>
</html>
 
HTML:
<html>
    <head>
        My Website
    </head>
    <body>
        <form action="secondpage.html" method="POST"> /* add action and method attribute inside the form tag */
            <div class="form-group">
                <input type="text" name="first_name">
            </div>
            <div class="form-group">
                <button type="submit"> /* take note dpat ung button type mo is "submit" */
                    Login/Submit
                </button>
            </div>
        </form>
    </body>
</html>
okay na sir na
solutionan na salamat
 
Status
Not open for further replies.

Similar threads

Back
Top