Hi,
I am trying to pass login info from a form on a non-drupal site. This works if I use the form action "user", but the front page form action is
"/front_page?destination=front_page"
This works on the drupal site of course, but not from the external site. addint the http:// info in front does not help either.

Here is the current form:

<form action="http://www.immireports.com/user"  method="post" id="user-login">
THIS WORKS BUT TAKES ME TO THE MY ACCOUNT PAGE
<form action="http://www.immireports.com/front_page?destination=front_page"  method="post" id="user-login-form">
NOT WORKING EXTERNALLY

<div><div class="form-item">
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="name" id="edit-name"  size="60" value="" tabindex="1" class="form-text required" />
<div class="description">Enter your username.</div>
</div>
<div class="form-item">
<label for="edit-pass">Password: <span class="form-required" title="This field is required.">*</span></label>
<input type="password" name="pass" id="edit-pass"  size="60"  tabindex="2" class="form-text required" />
<div class="description">Enter the password that accompanies your username.</div>
</div>
<input type="hidden" name="form_id" id="edit-user-login" value="user_login"  />
<input type="submit" name="op" id="edit-submit" value="Log in"  tabindex="3" class="form-submit" />
</div></form> 

[I added <code> and </code> tag so people could see the html: nevets]

Comments

jefbak2’s picture

Thanks for the code tags. Now I know...

jefbak2’s picture

Status: Active » Closed (fixed)

Fixed it:
Front Page users trying to login from external site can use this post method:
First I added the Login Destination Module
Then changed the post url to:
http://www.immireports.com/user?destination=front_page

Works great from non-drupal sites.