how to insert info from another page to ms sql database?

Discussion in 'PHP' started by qistina-87, May 14, 2007.

  1. #1
    i has this idea in mind but it cant seem to work. i m using ms sql database, by the way:)

    this is the scenario:
    the user will have to fill in the membership form. when they click onto the submit button in the membership form, the information-that the user key in, will be displayed in the next page. this is the code that i am using to display the info-that the user key in to be display onto the next page

    <form action="action.php" method="get">
    <p>Your name: <input type="text" name="name" /></p>
    <p>your age: <input type="text" name="age" /></p>
    <p><input type="submit" /></p>

    Hi <?php echo htmlspecialchars($_GET['name']); ?>.
    You are <?php echo (int)$_GET['age']; ?> years old

    and this is the thing that until now, i finding difficulty with. in the action.php page, the user will then have to click onto the submit button in order for their information to be inserted in the ms sql database.

    can someone help me as in, how am i suppposed to get the info-that the user key in from the action.php page,to be inserted in the ms sql database?
     
    qistina-87, May 14, 2007 IP
  2. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #2
    this question, example and code looks like youre looking for someone to do your homework here - and you didn't come up with anything own or what you tried to solve this task...
     
    falcondriver, May 14, 2007 IP
  3. qistina-87

    qistina-87 Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    like excuse me. i did have try but i cant seem to have a solution. thats why, i post my question in this forum.
     
    qistina-87, May 14, 2007 IP