Can i have more access to post data in a file other than mentionedin 'action' param ?

P

pradnya

Can i have access to post data in a file other than mentioned in
'action' param ?

if yes , how to achive this ?
 
L

LexNonScripta

Can i have access to post data in a file other than mentioned in
'action' param ?

if yes , how to achive this ?

You could use JS to collect data from a form and send it via an AJAX
request to another file. That could be done very easily with the
prototype.js library, which is what I use, but you can certainly find
other libraries or methods of achieving the same result.

take a look at http://prototypejs.org/api/form/serialize
and http://prototypejs.org/api/ajax/request

With Prototype it would look something like this:

new Ajax.Request('the/url/to/another/file.php', { parameters: $
('myForm_ID').serialize() });

Hope it helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top