Forums

PHP

This topic is locked

Insert data to different URLs

Posted 28 Sep 2007 13:05:53
1
has voted
28 Sep 2007 13:05:53 Hurst Vanrooj posted:
PHP - DREAMWEAVER - MYSQL

I need help with a problem. I have used Dreamweaver to create an administration section for a company Insert/Update/Delete to a databse. That's fine working OK.
Now the client has asked for something extra - when the job is being inserted there should be two checkboxes near the SUBMIT button.

[x] SEND TO COMPANY ONE (www.companyone.com)
[x] SEND TO COMPANY TWO (www.companytwo.com)

The data will ALWAYS be inserted into the client's database, but by checking one or both checkboxes the data will also be sent to an external URL. So I need a way of doing this.

ANY IDEAS?
Thanks
Vanrooj

Replies

Replied 28 Sep 2007 16:41:15
28 Sep 2007 16:41:15 Hurst Vanrooj replied:
OK HERE'S TO GET EVERYBODY STARTED.
Forget the check box
Let's say I have FOUR SUBMIT BUTTONS and Each submit takes you to four different pages that has and ONLOAD feature

1) INSERT INTO DATABSE ----------------------- onload insert into database
2) INSERT INTO JOB ONE [+DATABASE] ----------------------- (one form) insert POST to Job one URL
3) INSERT INTO JOB TWO [+DATABASE] ----------------------- (one form) insert POST to job two URL
4) INSERT INTO JOB ONE + JOB TWO [+DATABASE] ----------------------- (two forms) insert POST to job one URL AND POST to job two URL

Somebody must have a better solution!
Thanks
Hurst

Reply to this topic