How can i post data using php no html?

April 8, 2012
How can i post data using php no html?

Question by : How can i post data using php no html?
Hi, i need to post data to a website without using a html form.
the reason is that the hidden fields inside a html form can be viewed in the source code… is there a way to post data without revealing the information posted?? for example with php? thanks.
I would like to avoid using CURL as i am not developing in that language…
The problem with using sessions is that this information should be sent to paypal… so unless possible, i think it had to be posted…

Best answer:

Answer by Warren
If the information that you are posting is based off of input from the user then you need a form of some sort to get that information.

However, if it is information that was previously gathered, calculated, or retrieved from another source, you can store information temporarily using “sessions”. Seeing how your main concern is security and you don’t want people to be able to view the values, this is probably the easiest way to go about it.

Give your answer to this question below!

One Comment »

  1. Gitlez April 8, 2012 at 5:02 pm -

    First off cURL is not a language, it is a library of PHP.

    Secondly, there really shouldn’t be any data you need to hide from the user when using paypal.

    Lastly, the only method where you could post and send the user with the posted data would be to run a quick form, hidden but source-viewable, then submit it once the page loads (javascript).

    Other than those options, there isn’t a method.

    You can easily post data to a server, using a range of functions, but none of them would allow you to post the data and send the user at the same time.

    Also look into paypal’s IPN service, that may help you in solving your problem.

    Cheers,
    Gitlez