M.O.S. Studios Posted August 19, 2008 Share Posted August 19, 2008 Hey guys here is my question, im using paypal and the way you send them information about a purches is via tables with post data with their website as the "action" value post data. so for example a product thats 20.00$ will look like this (dumbed down) <form method="post" action="paypalweberver"> <input type="hidden" name="cost" value="20.00"> <input type="submit" name="buy it now" value=""> </form> basicly what i want to do is but that in a php script and have a link activate it. the purpose of this is to pervent some one from opening the script and submiting it with there own values. any one know how to do this? Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/ Share on other sites More sharing options...
Andy-H Posted August 19, 2008 Share Posted August 19, 2008 <body onLoad="document.myForm.submit();"> <form method="post" action="paypalweberver" name="myForm"> <input type="hidden" name="cost" value="20.00"> <input type="hidden" name="buy it now" value=""> </form> </body> paypalwebserver??? Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/#findComment-619814 Share on other sites More sharing options...
M.O.S. Studios Posted August 19, 2008 Author Share Posted August 19, 2008 i didn't know the site off buy hart, so i just put paypalwebserver, but i guess it wasn't clear Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/#findComment-619818 Share on other sites More sharing options...
M.O.S. Studios Posted August 19, 2008 Author Share Posted August 19, 2008 is their any wat to do that php instead of java? thanks in advance Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/#findComment-619821 Share on other sites More sharing options...
Andy-H Posted August 19, 2008 Share Posted August 19, 2008 I doubt it mate, PHP is server-side and forms are submitted browser side... Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/#findComment-619823 Share on other sites More sharing options...
M.O.S. Studios Posted August 19, 2008 Author Share Posted August 19, 2008 well i tested it with my button and it work just swell anyway, thanks Link to comment https://forums.phpfreaks.com/topic/120307-solved-reposting-data/#findComment-619828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.