Um, you don't. The warning mesage is there to warn users that this very thing is happening, so that they know future submissions and clicks are not secure.
I came up with a solution. Its crude but it works. I created an html page in between the https and http page. The html page is called by the https and refreshes after 0 seconds to the http, this avoids the warning message.