need javascript

Discussion in 'HTML & Website Design' started by prateekcassanova, Nov 27, 2008.

  1. #1
    I have seen a website . this website consist of a good feedback popup... i want to include same type of pop up in my website of shawls and scarves. how can i do so?
     
    prateekcassanova, Nov 27, 2008 IP
  2. drew22299

    drew22299 Guest

    Messages:
    76
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want a pop up or would you like a page that allows users to enter details? If you want a page that allows users to enter feedback it can be validated using javascript to ensure their data is the correct format. For example, javascript could be executed to check the form when the user clicks the submit button.

    Once the user has clicked the submit button, the data is then inserted into the database using a separate page. For example,

    user_feedback.htm

    <form name='form1' method='post' action='store_data.php'>
    Name: <input type='text' name='name' /><br>
    Email Address: <input type='text' name='emailaddress' /><br>
    Comments: <input type='text' name='comments' /><br>
    <input type='submit' />
    </form>
    PHP:
    The data entered by the user is then passed to this page:

    store_data.php

    //Get data entered by user
    $name = $_POST['name'];
    $email = $_POST['emailaddress'];
    $comments = $_POST['comments'];
    
    //Connect to database and store data
    $sql="INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)";
    PHP:
    Is that the sort of thing you are looking for?
     
    drew22299, Nov 27, 2008 IP
  3. prateekcassanova

    prateekcassanova Guest

    Messages:
    300
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes but i want like this website. see the feedback pop up opening on this website.
     
    prateekcassanova, Nov 29, 2008 IP
  4. lebensborn

    lebensborn Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to use the z-index and hidden layers in css. Give me a PM, i'll make any change you require. I have posted in one of your other threads too about helping you on some other things.

    P.S. for anyone else needing info on this subject check out this webpage, it's got loads of info that is handy.
     
    lebensborn, Nov 30, 2008 IP