auto submit form

Javascript coding ..

Moderators: egami, macek, gesf

Post Reply
User avatar
WebOutGateway
New php-forum User
New php-forum User
Posts: 65
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines
Contact:

Mon May 18, 2015 1:30 am

Hi JosephHanh

To be specific you are setting a timer for each questions and send the answer after the time consumed whether there is an answer or none.
You may use the JQuery function let say you have a form consist of question and you need to wait with delay() function and then submit() the form itself

$(function() {
$('#form').delay(30000).submit();
});

hope it helps

johnmacd
New php-forum User
New php-forum User
Posts: 72
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

Fri Apr 08, 2016 4:25 am

Hi,

Try this:
if (isset($_GET['var']))
{
// SUBMIT FORM
}
else
{
// leave the page alone
}


Thanks

Post Reply