jjmusicpro Posted September 7, 2008 Share Posted September 7, 2008 I wanted to make a page where you put in details like, title, description etc. and hit go.. Then it will send that data to some ajax page that will post this data say into a forum etc. I dont know how to navigate pages without it changing the main page. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted September 7, 2008 Share Posted September 7, 2008 I would suggest you start with some basic AJAX tutorials. If you google, you'll find plenty. Quote Link to comment Share on other sites More sharing options...
centerwork Posted September 7, 2008 Share Posted September 7, 2008 Here are a few option that may help you. Use an <iframe></iframe>. You may also want to try calling a function somefunction() { enter script Here... } Call the function: <php somefunction(); ?> I am not sure if this is what you want but the should be able to do what you want. Quote Link to comment Share on other sites More sharing options...
tibberous Posted September 7, 2008 Share Posted September 7, 2008 Yeah, this really is one where you just want to go and do an ajax tutorial - w3schools is the one I used: http://www.w3schools.com/Ajax/ajax_intro.asp What you trying to do is the very definition of Ajax, and the tutorial posted shows you how to do it in a way that works for all the browsers, with error handling. Don't let the fact it uses asp worry you - your just printing out a few simple lines, which you can do in any language. To make debugging easier, I'd go get Firefox if you don't have it, and add file_put_contents('request.txt', print_r($_REQUEST, true)); at the top of my scripts. Quote Link to comment Share on other sites More sharing options...
jjmusicpro Posted September 7, 2008 Author Share Posted September 7, 2008 Ive looked through the ajax turtorials... ok say im not going to do this in AJAX I want to make a page where i put in some data, it send that data to another page, where the code in that page, actually goes to another site, and puts in the data, and presses "submit" just as if i were to go to that page and do it. Quote Link to comment Share on other sites More sharing options...
jjmusicpro Posted September 7, 2008 Author Share Posted September 7, 2008 there has to be some way or function to go to another page in your code, fill in some text box's on that virtual page, and then hit enter on that page, all without the user seeing the browser do it. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted September 7, 2008 Share Posted September 7, 2008 cURL? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 7, 2008 Share Posted September 7, 2008 cURL? Yeah, but that makes the server do it, not the browser. How about we start at the root of the question? What exactly do you want to do this for, and be specific. Quote Link to comment Share on other sites More sharing options...
jjmusicpro Posted September 7, 2008 Author Share Posted September 7, 2008 cURL? Yeah, but that makes the server do it, not the browser. How about we start at the root of the question? What exactly do you want to do this for, and be specific. Maybe cURL is what im looking for. I wanted to have a page that has "title" and "body" check box's. Then i fill those in, hit submit, and it will go to some other website that has those fields on the page, it puts those values into that page, hits the submit on that page, and then search the results page for "your post has been submitted", or something in the return text. Then put "worked" if it found that text in the respone, or "not worked" if it didnt find text. Hope that helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.