mark103 Posted September 27, 2008 Share Posted September 27, 2008 Hi guys Please can you help me to modify my code? I need to enter the amount value before post to the website like paypal, and then when I enter the login details and when I click the pay button, I want the amount to be process before sending and store to mysql database. Here it is the code: <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>My Profile</title> <link href="loginmodule.css" rel="stylesheet" type="text/css" /> </head> <body> <a href="member-index.php">Back</a> <h1 align="center">Deposit</h1> <input name="formtext1" type="text" style="position:absolute;width:105px;left:351px;top:89px;z-index:0"> <div id="text1" style="position:absolute; overflow:hidden; left:194px; top:92px; width:155px; height:21px; z-index:1"><div class="wpmd"> <div align=right>Add Fund: £ </div> </div></div> <input name="formbutton1" type="submit" value="Submit" style="position:absolute;left:372px;top:120px;z-index:2"> </body> </html> When I enter the amount value on the textbox and I click submit button, nothing is working. Please help!!!!!!!!!!!! Thanks, Mark Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/ Share on other sites More sharing options...
CroNiX Posted September 27, 2008 Share Posted September 27, 2008 Maybe because you have no form tags at all? You have form elements (input) but they are not in a form! Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652001 Share on other sites More sharing options...
mark103 Posted September 27, 2008 Author Share Posted September 27, 2008 Thanks for your quick reply, yes sorry I have forgot to add up. I do have the form and the submit button so please can you post the code that the submit button would enter the correct value when I entered?? Thanks, Mark Maybe because you have no form tags at all? You have form elements (input) but they are not in a form! Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652009 Share on other sites More sharing options...
CroNiX Posted September 27, 2008 Share Posted September 27, 2008 You are being really vague. Please rephrase your question and post all of your code with the complete form tags. Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652012 Share on other sites More sharing options...
mark103 Posted September 27, 2008 Author Share Posted September 27, 2008 Ok, here is what I want to achieve following... 1. User submits the form button to require for amount fee after when first entering amount value on textbox 2. Site is redirected to Paypal 3. As soon as user makes payment through paypal to mysql database, then paypal site redirect to my site. I want send an payment to my self and store the amount on mysql database after when the payment was successful made. The code I have already posted on above. <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>My Profile</title> <link href="loginmodule.css" rel="stylesheet" type="text/css" /> </head> <body> <a href="member-index.php">Back</a> <h1 align="center">Deposit</h1> <input name="formtext1" type="text" style="position:absolute;width:105px;left:351px;top:89px;z-index:0"> <div id="text1" style="position:absolute; overflow:hidden; left:194px; top:92px; width:155px; height:21px; z-index:1"><div class="wpmd"> <div align=right>Add Fund: £ </div> </div></div> <input name="formbutton1" type="submit" value="Submit" style="position:absolute;left:372px;top:120px;z-index:2"> </body> </html> Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652029 Share on other sites More sharing options...
CroNiX Posted September 27, 2008 Share Posted September 27, 2008 Where is the form? Once again, I see the form ELEMENTS, but not the actual FORM; <form id="blah" action="processingScript.php" method="post"> then your form elements, then </form> Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652038 Share on other sites More sharing options...
mark103 Posted September 27, 2008 Author Share Posted September 27, 2008 Oh sorry, here it is the form. <input name="formbutton1" type="submit" value="Submit" style="position:absolute;left:372px;top:120px;z-index:2"> How can i redirect to paypal when I entering the amount value on the textbox?? Thanks, Mark Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652042 Share on other sites More sharing options...
CroNiX Posted September 27, 2008 Share Posted September 27, 2008 Um, once again, that is NOT a form, it is a form ELEMENT. ??? ??? I think this is way over your head and I don't know how to explain it any better. Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652049 Share on other sites More sharing options...
mark103 Posted September 27, 2008 Author Share Posted September 27, 2008 Ok, as I said I need the code for the form which it will redirect me to payment site like paypal with amount require that I already entered on one-line textbox form?? Thanks, Mark Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652054 Share on other sites More sharing options...
mark103 Posted September 28, 2008 Author Share Posted September 28, 2008 can someone f*****g help me please???????????????? Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652372 Share on other sites More sharing options...
trq Posted September 28, 2008 Share Posted September 28, 2008 Not with an attitude like that. Link to comment https://forums.phpfreaks.com/topic/126085-solved-enter-value-before-post/#findComment-652374 Share on other sites More sharing options...
Recommended Posts