how to send indiviual data id from lightbox submit form

Discussion in 'PHP' started by dineshsingh1984, Mar 10, 2011.

  1. #1
    I'm developed a classified site where I'm display ads with a individual id (which are fetch from data base) and in every ads adding reply option where i'm using light-box submit form if i'm reply with first ads then msg send with first ads individual id.
    how to send individual id with the ads when click on reply button
    for example first ads individual id is 1211 and when i'm clicking on this ad reply button then open lightbox submit form where two option showing email id and message when both field are filled and submit then mail id and msg with this ads id 1211 both are send at the new location............
    like this................
    I showing print screen image demo2 and demo3

    plz help me...................
    I'm waiting 4 reply......................
     

    Attached Files:

    Last edited: Mar 10, 2011
    dineshsingh1984, Mar 10, 2011 IP
  2. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #2
    You can use the HTML hidden form type. like so;

    <input type="hidden" name="adID" value="WHATEVERTHEIDIS"> and send it along with the form.
     
    awood969, Mar 10, 2011 IP
  3. dineshsingh1984

    dineshsingh1984 Active Member

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    yaa i'm using this field
    <input type="hidden" name="adID" value="WHATEVERTHEIDIS">

    but my actually problem how can send in this "adID" value in submit form which like this (which script are using ?)
    <form method="GET" action="lightbox-formulaire-test.html" target="_parent">

    <p>Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="email" value="" maxlength="60" size="60">
    </p>

    <p>Message:
    <input type="text" name="msg" value="" maxlength="60" size="60">
    </p>


    <p>
    <input type="submit" name="submit">
    <input type="button" name="cancel" value="Cancel" onClick="closebox()">
    </p>
    </form>

    and which are working with javascript like this
    <a href="#" onClick="openbox('REPLY', 1)">Reply</a>
     
    Last edited: Mar 10, 2011
    dineshsingh1984, Mar 10, 2011 IP