Hello, is it possible to send a data into a web server? Because I need to. LOL.
Assume I have a form application in my forum, then if I click the 'Send Form' button, it will send the entered data into the server.. and if possible, echo-ing the data?
I know this is possible to do with AJAX, but I'm not sure if this is certainly possible.. I have my own server, so, no worries.
An example of the form:
Something like that.
Assume I have a form application in my forum, then if I click the 'Send Form' button, it will send the entered data into the server.. and if possible, echo-ing the data?
I know this is possible to do with AJAX, but I'm not sure if this is certainly possible.. I have my own server, so, no worries.
An example of the form:
- Code:
[panda=html]<input type="text" placeholder="Username">
<input type="textarea" placeholder="Your comments">
<input type="submit" value="Submit">
- Code:
[panda=js]var button = document.getElementsByTagName('input')[2];
button.addEventListener('onclick', function() {
$.post('/server.php', function() {
console.log('Sending the data..');
});
}
Something like that.