Jump to content

Stupid yet annoying problem


ryanh_106

Recommended Posts

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.php
The 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
Link to comment
Share on other sites

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)
Link to comment
Share on other sites

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/staff

Like i said though, the login page works, just not when you submit the form to it...
Link to comment
Share on other sites

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 or
b) 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.
Link to comment
Share on other sites

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.