Jump to content

Recommended Posts

Hi.  I am very confused. I have a website where I use a simple form to post job information to a mysql db.  It all works very well. 

 

Then I ran into trouble.  I have another website on  a different server and I want to post some of the jobs there too.  I can create a duplicate db structure on the new site but I can't figure out how to do it without posting once on each site which is not an option (there are more sites on the way).  I need to be able to post using the form on the original site and for the same information to be sent to various sites.  I think xml is the way to go but I cannot find a simple enough tutorial to guide me through posting and then receiving and parsing the other end.  If anybody has any better suggestions than xml I'm all ears.  xml seems like the best solution because there are so many variables to each job that need to be passed.  If anybody can come up with an experimental tutorial that just passes <name>Ian</name><job>milkman</job> to a different site and then sends back a message confirming that it's ok I'd be delighted.

 

Oodles of gratitude in advance for any enlightenment!

 

ps. sorry if this is the wrong section.  I really am out of my depth on this one!

Link to comment
https://forums.phpfreaks.com/topic/138880-posting-and-receiving-using-php/
Share on other sites

I just read it back and maybe that is too much of a broad question.

I'll break it down.

I need:-

[*]What to put in my posting code.  eg. if(checkbox send to newsite is checked){do this to send to getxml.php on newsite}

[*]What to put on a page in the new site (eg. getxml.php) to act as a receiver which sends back a message to confirm receipt.

[*]How to parse the information received by getxml.php into a form I can insert into the db on the newsite

[*]A clue about what I am doing!

Why just you access the same database from the previous server and filter the content, so that way it will display just the info you want!

 

I think that's way easy than duplicating a whole database

 

There are a few problems with that.  Firstly I have to set up permissions on the db's themselves.  Presently I am not authorised to access the db on the first site from the second.  This sounds complicated to do.  Secondly, I also want to post to the major jobs boards from our own site down the line which requires me to learn about xml posting.  I just don't know where to start.  I've wasted days getting nowhere (yes even over Christmas!)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.