What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Action attribute doesnt work

EnderFran2006

New member
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!
 
Back
Top