fetch data in a form without using post?
let's say that i'll be making functions that should be able to execute in the page while not making use of post method...
<input type = "text" name = "text" />
<input type = "button" name = "call" onclick = "<?call();"?>" />
correct me if i'm wrong but is this possible...
You can execute the call() function using an ajax call...
i think that the onclick is an available option for the input type button isn't it?
input type="text" onclick="alert('test')">
The above will work because it's executed on the client's machine, but the php code is parsed before the page is send to the client (on the server) so it is impossible to know when the user will click it.
However you can make an ajax call:
input type="text" onclick="$.get('page.php')">
And page.php will have a call to you function: <?call();"?>
This will work. (The above code uses jQuery library)
perhaps if we did this then its possible
|All times are GMT. The time now is 12:11 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0