set parameters in HTML page for a PHP page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idoru17
    New Member
    • May 2010
    • 1

    set parameters in HTML page for a PHP page

    Hi,

    I need to set some parameters in an HTML page displayed in a lightbox (fancybox) using an iframe. The calling page is in HTML, here are the parameters to be set:
    - 2 text areas named champ1 (messages subject) and zone_email (email to be answered to)
    - 1 combo box named "liste1" with 3 choices
    - 1 radio buttons zone named "button1" with 3 radios buttons (thus 3 choices)
    - 1 checkbox zone named "checkbox" with 2 choices

    I need to set these parameters but I also need my PHP contact page to display the various areas already on the page.

    I've tried the following syntax:

    HTML calling page:
    <a href="contact2. php?$champ1=res erver&liste1=br ocante&button1= reservation&che ckbox=urgent" class="Style1"> Reserver</a>

    with no luck as none of the areas are set and display the values.
    As I'm not a PHP guru is there somebody to help me on this ?

    Is it possible to set these parameters, share them with my PHP and make the PHP page to display the values using the layout I've already set ?



    ps: I have to tell that my contact PHP page works well within my host when I click the Contact menu option, with all areas ready to be set by the user.
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    i don't understand what you mean by HTML parameters.
    So looking at the only bit of code you have posted
    Code:
    <a href="contact2.php?$champ1=reserver&
    liste1=brocant e&button1=reservation&
    checkbox=urgent" class="Style1">Reserver</a>
    This won't work in HTML or a HTML file.
    it looks like a PHP echo.wouls also fail

    A bit more code (not all of it please) or a specific problem would help

    Comment

    Working...