Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2008
    Posts
    114
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Enter value before post

    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 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: &nbsp; </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
    Last edited by mark103; 09-28-2008 at 03:10 PM.

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Looks like your are missing the form details, including the post method.


    -----
    Leonard Whistler

  • #3
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Yeah before your form add this, (custom the link to your site)

    Code:
    <form action="index.php" method="post">
    After your submit button add this

    Code:
    </form>
    Your done!

  • Users who have thanked masterofollies for this post:

    mark103 (09-28-2008)

  • #4
    Regular Coder
    Join Date
    Sep 2008
    Posts
    114
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the help. Resolved!!!!!!!!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •