d00rman
d00rman

Reputation: 330

How do I post an input whitout a form?

So, I'm using Bootstrap as my framework, and I don't like what happens with my column if I put it in a <form> tag. So, can I post my input to a php file without a form?

HTML

<form role="form-horizontal" id="usr_reg_in" name="usr_reg_in" action="php/usr_time_reg.php" method="post">
    <input type="text" class="form-control" id="reg_in" name="reg_in" placeholder="Var god ange anst. nummer">
        <span class="input-group-btn">
            <button class="btn btn-info" type="submit">In</button>
        </span>
</form>

Upvotes: 1

Views: 34

Answers (1)

aldux
aldux

Reputation: 2804

The short answer is yes. For example, you could use jQuery's Post method.

But form tags are here for a reason, and they should be used accordingly. Layout shouldn't be an issue for dropping a form.

Ask a question about the form breaking your layout here in SO. I'm sure it's quite simple to fix it.

Upvotes: 1

Related Questions