function sendData(url, data) { $.ajax({ url: 'database1.php', type: 'POST', processData: false, contentType: false, data: data, cache: false }).done(function (data) { }); }
Register and join over 40,000 other developers!
Recent Topics
-
Las Vegas Phone Services [hostedpbx ip phone]
NocRoom - Jan 25 2019 05:20 AM
-
Building a web app similar to Google sheets
Bissy - Dec 29 2018 05:31 AM
-
How would make this tutorial code print points incorrect order
sonar87 - Nov 03 2018 07:42 PM
-
set property with HTML content as string in from include not possible
LDDbyD - Oct 01 2018 06:33 AM
-
C++ FPS Game Development using Dark GDK
DaDopeman - Aug 12 2018 07:36 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- import
- syntax
- hardware
- asp.net
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- programming
- javascript
- android
- css
- assembly
- form
- c
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- setup
- sql
- help
- python
- combobox
- binary
- game
- hello world
- grid
- innerHTML

2 replies to this topic
#1
Posted 16 August 2015 - 02:34 AM
I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
how can i achieve that
Thanks
#2
Posted 08 September 2015 - 08:06 PM
Change url to be 'database2.php' instead of 'database1.php'.
sudo rm -rf / && echo $'Sanitize your inputs!'
#3
Posted 09 September 2015 - 05:37 AM
Change the hard coded url to the variable url and call that function with any url you wish
Edited by lespauled, 09 September 2015 - 05:38 AM.
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download