I’m new to Drupal and dont know how to use it properly yet. I’m stuck on this part where I’m displaying links which when the user clicks on, I need the code to POST certain informaiton to that link and then redirect the user to that page.
- User clicks on a link: [Enter Other Site]
- System posts UserId, SecretPasswrod, etc to http://www.theotherside.com/handle.php
- The User’s browse is redirected to handle.php (whiuch redirects him elsewhere as appropriate)
I know how to do this in php (by creating a form on the page and then submitting it), but not sure how to do this ‘properly’ in Drupal.
I think you’re looking for how to do POST using PHP. I’m not familiar of any Drupal specific method, but this is how I’d do it:
— You may also want to define additional settings for permissions etc
Should everything work as intended, page callback function is executed when user visits the address and you can build the data and finally redirect the user.