Jump to content

Posting to a form while redirecting


redbrad0

Recommended Posts

Is it possible to redirect a user to another php page but send a post with the variables? I know that I could use CURL to post the data but I do not want to get the response from the website.

 

What I am using this for is phpmyadmin. My application will say if they have permission to view the database and if so it will post the username and password so the information is not in plain site.

Link to comment
Share on other sites

there a ways to do this, couple of classes I've seen floating around (can't remember any off the top of my head)

 

however it violates some of the rules of web architecture (bad thing) so I haven't played with it,

 

generally what I do is a follow-up page,

 

give a happy note and a 2nd post button

 

of course if your working with a small site you can always dig through the web to find methods,

Google is full of great answers to good questions (the good question is the tricky part)

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.