[FX.php List] [OFF] Submitting a POST automatically

Bob Patin bob at patin.com
Wed Jul 8 14:37:08 MDT 2009


I've got a rather odd need on a site:

In this site, members login to the site, and are verified in the  
database. So far so good.

As members, they can also go to another site; to get to it, I have to  
use a POST to send specific variables to the 2nd site, but I only want  
logged-in members to be able to do so.

If they're NOT logged-in already, I'd like to have the login process  
page validate them, then automatically submit a FORM that I've put on  
the same page.

I tried using

header("location: javascript:form2.submit();");

at the end of my PHP, but it wouldn't process. So here's my question:  
is there a way for me to do this:

1. query the db, validate the user (already done this)
2. submit a form that uses a POST (can't be a GET) without user  
interaction

There's probably a simple way, but I haven't found it yet; thanks,

Bob Patin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: new_logo_idea3_120w.jpg
Type: image/jpeg
Size: 15728 bytes
Desc: not available
Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/90c51a26/new_logo_idea3_120w-0001.jpg
-------------- next part --------------




Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting



More information about the FX.php_List mailing list