Title: submit form with link button Post by: frankz on November 18, 2017, 02:09:17 AM how can you use the link button to submit a form without ajax?
because i have problems using ajax. If I use the classic Code: <input type="submit" value="Submit"> Code: <a href="controllers/login.php" class="easyui-linkbutton" onclick="$('#flogin').submit();" style="width:80px">Submit</a> code HTML index.php Code: <body> code JAVASCRIPT login.js Code: function sublogin(){ code PHP login.php Code: <html> can anyone help me find a solution with or without ajax? Title: Re: submit form with link button Post by: jarry on November 18, 2017, 08:41:11 AM Please remove the 'href' or set the 'ajax' property to false to submit the form without ajax.
Code: <a href="javascript:;" class="easyui-linkbutton" onclick="$('#flogin').submit();" style="width:80px">Submit</a> Code: $('#flogin').form('submit',{ Title: Re: submit form with link button Post by: frankz on November 18, 2017, 08:53:45 AM thanks, now I try.
I would like to use the link button before it checks. Title: Re: submit form with link button Post by: frankz on November 18, 2017, 09:17:11 AM I tried, but they did not work.
the first and the second solution works partially because it does not send me to the "controllers / login.php" page and reload the same page. I should send the "login.php" data form for the user's verification in the DB and chase the main page (of course with login control in the open session) |