ryanh_106 Posted January 9, 2007 Share Posted January 9, 2007 Now I am sure I have created a form that posts to another domain before (like creating a local form that posts to google, but i cant seem to get it working here. I have a forum located at forums.domain.org.uk and a site (obv) located at www.domain.org.uk - the forums thing is a sub-domain. I am creating a section of the site for staff only and trying to create a form in the staff section that posts login info to the login page of the forum.So... page with form on is www.domain.org.uk/staff/index.phpThe forms action value is "http://forums.domain.org.uk/forum/login.php"When I submit the form the address bar changes to http://forums.domain.org.uk/forum/login.php but it says page cannot be found. If i put the cursor in the address bar and press enter, it goes to the login page so its obv right.Now i know its late but this is crazy, why isnt this workin?Please help Quote Link to comment https://forums.phpfreaks.com/topic/33521-stupid-yet-annoying-problem/ Share on other sites More sharing options...
ToonMariner Posted January 10, 2007 Share Posted January 10, 2007 OK those urls don't work. I would understand you trying to hide yur site away but just incase you are not www.domains.org.uk redirects to www.domainit.com.and the links to teh subdomains simply don't work.if those are not the actual domains you are working with then come back and post some url that we can use (maybe put up a temp site somewhere? or if its not critical the actual url you are working with) Quote Link to comment https://forums.phpfreaks.com/topic/33521-stupid-yet-annoying-problem/#findComment-156930 Share on other sites More sharing options...
ryanh_106 Posted January 10, 2007 Author Share Posted January 10, 2007 sorry i thought that was pretty obviously a made up address ::)if you must know the proper address its http://forums.alopecia-awareness.org.uk/forum/login.php and the login form is at www.alopecia-awareness.org.uk/staffLike i said though, the login page works, just not when you submit the form to it... Quote Link to comment https://forums.phpfreaks.com/topic/33521-stupid-yet-annoying-problem/#findComment-157277 Share on other sites More sharing options...
ToonMariner Posted January 10, 2007 Share Posted January 10, 2007 you will note that the forum login script includes a session id after the action of the form (take a look at the source code).You will either:a) edit the forum so that session is only started once user has logged in orb) start a session on the staff login page and append the session id to the end of the action="http://forums.blah/blah/login.php?sid=ddca900783a48053c07394f5d5c64222"Now that session id looks like an md5 hash of the actual session id - you will have to see how the code of teh forum generates this value and replcate it on your staff ligin page. Quote Link to comment https://forums.phpfreaks.com/topic/33521-stupid-yet-annoying-problem/#findComment-157389 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.