Reputation: 330
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
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