Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  56] [ 6]  / answers: 1 / hits: 111994  / 12 Years ago, tue, march 5, 2013, 12:00:00

How to submit this form without using submit button. I want to submit it in loading this form,



<form name=frm1 id=frm1 action=../somePage method=post>
Please Waite...
<input type=hidden name=uname id=uname value=<?php echo $uname;?> />
<input type=hidden name=price id=price value=<?php echo $price;?> />
</form>

More From » php

 Answers
35

Do this :



$(document).ready(function(){
$(#frm1).submit();
});

[#79834] Monday, March 4, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerardamosy

Total Points: 600
Total Questions: 116
Total Answers: 102

Location: Ukraine
Member since Tue, May 30, 2023
1 Year ago
;