What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Action attribute doesnt work

EnderFran2006

New member
Joined
Dec 18, 2020
Messages
3
Reaction score
0
HTML Coins
0
Hello I am trying to get my action attribute to work for my form so that it sends me to another page but for some reason it doesn't load. It is saying that the page will not load and wants me to ask the owner of the page which is me Please help.


Code:
<form action="order.html" method="POST">
<button type="submit" href="order.html">Submit</button>
        </form>
    </fieldset>
    <br>

<script src="main.js"></script>
</body>
var Coke1 = document.getElementById("coke");
        var Fanta1 = document.getElementById("fanta");
        var Pepsi1 = document.getElementById("pepsi");
        var DrPepper1 = document.getElementById("drpepper");
        var Diet1 = document.getElementById("diet");
        var Small1 = document.getElementById("small");
        var Medium1 = document.getElementById("medium");
        var Large1 = document.getElementById("large");
        var drink = [Coke1, Fanta1, Pepsi1, DrPepper1]
Any help would be great
 
Hello I am trying to get my action attribute to work for my form so that it sends me to another page but for some reason it doesn't load. It is saying that the page will not load and wants me to ask the owner of the page which is me Please help.


Code:
<form action="order.html" method="POST">
<button type="submit" href="order.html">Submit</button>
        </form>
    </fieldset>
    <br>

<script src="main.js"></script>
</body>
var Coke1 = document.getElementById("coke");
        var Fanta1 = document.getElementById("fanta");
        var Pepsi1 = document.getElementById("pepsi");
        var DrPepper1 = document.getElementById("drpepper");
        var Diet1 = document.getElementById("diet");
        var Small1 = document.getElementById("small");
        var Medium1 = document.getElementById("medium");
        var Large1 = document.getElementById("large");
        var drink = [Coke1, Fanta1, Pepsi1, DrPepper1]
Any help would be great
hi
 
You missed a semi-colon to close the statement (the last variable you declared). That's the first thing that jumps out to me anyway. Good luck!
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back