php variable in html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian

    php variable in html

    Hello,

    How can I do it that it will recognise the php variable $calendar_dir in:

    $monthtext1 =
    "
    <!-- month heading -------------------------------------------->
    <table align=\"center\ ">
    <tr>
    <td align=\"left\">
    <form name=\"goto\" action=\"$calen dar_dir/calendar.php\" method=\"POST\" >
    <table cellpadding=\"2 \" cellspacing=\"0 \" border=\"0\" bgcolor=\"#0000 00\"
    align=\"center\ ">
    <tr><td>
    <table cellpadding=\"5 \" cellspacing=\"0 \" border=\"0\" bgcolor=\"#CC00 00\">
    <tr><td width=\"200\">" ;

    the variable contains a directory i set in a config.php and included on
    beginning of the document.
    Thanks for the advice
    chris




  • Tim Van Wassenhove

    #2
    Re: php variable in html

    On 2003-12-03, Christian <cmohn@vianet.c a> wrote:[color=blue]
    > Hello,
    >
    > How can I do it that it will recognise the php variable $calendar_dir in:
    >
    > $monthtext1 =
    > "
    ><!-- month heading -------------------------------------------->
    ><table align=\"center\ ">
    ><tr>
    ><td align=\"left\">
    > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\" method=\"POST\" >[/color]


    action=\"${cale ndar_dir}calend ar.php\"

    --
    verum ipsum factum

    Comment

    • Chung Leong

      #3
      Re: php variable in html

      There's nothing wrong with the code fragment you provided. Something else is
      preventing $calendar_dir from being seen. Does the assignment to $monthtext1
      take place inside a function?

      Uzytkownik "Christian" <cmohn@vianet.c a> napisal w wiadomosci
      news:vssh5nfc8o es04@corp.super news.com...[color=blue]
      > Hello,
      >
      > How can I do it that it will recognise the php variable $calendar_dir in:
      >
      > $monthtext1 =
      > "
      > <!-- month heading -------------------------------------------->
      > <table align=\"center\ ">
      > <tr>
      > <td align=\"left\">
      > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\"[/color]
      method=\"POST\" >[color=blue]
      > <table cellpadding=\"2 \" cellspacing=\"0 \" border=\"0\"[/color]
      bgcolor=\"#0000 00\"[color=blue]
      > align=\"center\ ">
      > <tr><td>
      > <table cellpadding=\"5 \" cellspacing=\"0 \" border=\"0\"[/color]
      bgcolor=\"#CC00 00\">[color=blue]
      > <tr><td width=\"200\">" ;
      >
      > the variable contains a directory i set in a config.php and included on
      > beginning of the document.
      > Thanks for the advice
      > chris
      >
      >
      >
      >[/color]


      Comment

      • Clubberboy

        #4
        Re: php variable in html

        Op Wed, 3 Dec 2003 15:16:46 -0500 schreef "Christian"
        <cmohn@vianet.c a>:[color=blue]
        >How can I do it that it will recognise the php variable $calendar_dir in:
        >
        >$monthtext1 =
        >"
        ><!-- month heading -------------------------------------------->
        ><table align=\"center\ ">
        ><tr>
        ><td align=\"left\">
        > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\" method=\"POST\" >
        ><table cellpadding=\"2 \" cellspacing=\"0 \" border=\"0\" bgcolor=\"#0000 00\"
        >align=\"center \">
        ><tr><td>
        ><table cellpadding=\"5 \" cellspacing=\"0 \" border=\"0\" bgcolor=\"#CC00 00\">
        ><tr><td width=\"200\">" ;[/color]


        it's easier to use following construction, this way you don't have to
        worry anymore about slashing

        $monthtext1=<<< EOH
        <form name="goto" action="$calend ar_dir/calendar.php" method="POST">
        EOH;


        --
        Ontvang hoogwaardig IT-consultancy en maatwerksoftwareoplossingen, professionele smart contract-audits en blockchain-advies, en boeiende e-learning-cursussen. Onze expertise omvat een breed scala aan diensten die uw bedrijf naar de volgende digitale fase leiden. Neem vandaag nog contact met ons op en ontdek hoe wij u kunnen helpen uw technologische doelen te bereiken

        Comment

        • Savut

          #5
          Re: php variable in html

          I can't see any miss escaped slashes, it wont resolve

          Savut

          "Clubberboy " <clubberboy@pan dora.be-invalid> wrote in message
          news:qk1usv80jf naff9quuu6jh527 5abavlih9@4ax.c om...[color=blue]
          > Op Wed, 3 Dec 2003 15:16:46 -0500 schreef "Christian"
          > <cmohn@vianet.c a>:[color=green]
          > >How can I do it that it will recognise the php variable $calendar_dir[/color][/color]
          in:[color=blue][color=green]
          > >
          > >$monthtext1 =
          > >"
          > ><!-- month heading -------------------------------------------->
          > ><table align=\"center\ ">
          > ><tr>
          > ><td align=\"left\">
          > > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\"[/color][/color]
          method=\"POST\" >[color=blue][color=green]
          > ><table cellpadding=\"2 \" cellspacing=\"0 \" border=\"0\"[/color][/color]
          bgcolor=\"#0000 00\"[color=blue][color=green]
          > >align=\"center \">
          > ><tr><td>
          > ><table cellpadding=\"5 \" cellspacing=\"0 \" border=\"0\"[/color][/color]
          bgcolor=\"#CC00 00\">[color=blue][color=green]
          > ><tr><td width=\"200\">" ;[/color]
          >
          >
          > it's easier to use following construction, this way you don't have to
          > worry anymore about slashing
          >
          > $monthtext1=<<< EOH
          > <form name="goto" action="$calend ar_dir/calendar.php" method="POST">
          > EOH;
          >
          >
          > --
          > http://www.techtronix.be[/color]


          Comment

          • Savut

            #6
            Re: php variable in html

            this wont help as even you dont use {}, his syntax was good and working

            Savut

            "Tim Van Wassenhove" <euki@pi.be> wrote in message
            news:bqlqr6$22r ks6$1@ID-188825.news.uni-berlin.de...[color=blue]
            > On 2003-12-03, Christian <cmohn@vianet.c a> wrote:[color=green]
            > > Hello,
            > >
            > > How can I do it that it will recognise the php variable $calendar_dir[/color][/color]
            in:[color=blue][color=green]
            > >
            > > $monthtext1 =
            > > "
            > ><!-- month heading -------------------------------------------->
            > ><table align=\"center\ ">
            > ><tr>
            > ><td align=\"left\">
            > > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\"[/color][/color]
            method=\"POST\" >[color=blue]
            >
            >
            > action=\"${cale ndar_dir}calend ar.php\"
            >
            > --
            > verum ipsum factum[/color]


            Comment

            • Savut

              #7
              Re: php variable in html

              Or you redefined it to "" somewhere before that...
              $calendar_dir = "";

              Savut

              "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
              news:yOCdnUugYu rtMVOiRVn-vw@comcast.com. ..[color=blue]
              > There's nothing wrong with the code fragment you provided. Something else[/color]
              is[color=blue]
              > preventing $calendar_dir from being seen. Does the assignment to[/color]
              $monthtext1[color=blue]
              > take place inside a function?
              >
              > Uzytkownik "Christian" <cmohn@vianet.c a> napisal w wiadomosci
              > news:vssh5nfc8o es04@corp.super news.com...[color=green]
              > > Hello,
              > >
              > > How can I do it that it will recognise the php variable $calendar_dir[/color][/color]
              in:[color=blue][color=green]
              > >
              > > $monthtext1 =
              > > "
              > > <!-- month heading -------------------------------------------->
              > > <table align=\"center\ ">
              > > <tr>
              > > <td align=\"left\">
              > > <form name=\"goto\" action=\"$calen dar_dir/calendar.php\"[/color]
              > method=\"POST\" >[color=green]
              > > <table cellpadding=\"2 \" cellspacing=\"0 \" border=\"0\"[/color]
              > bgcolor=\"#0000 00\"[color=green]
              > > align=\"center\ ">
              > > <tr><td>
              > > <table cellpadding=\"5 \" cellspacing=\"0 \" border=\"0\"[/color]
              > bgcolor=\"#CC00 00\">[color=green]
              > > <tr><td width=\"200\">" ;
              > >
              > > the variable contains a directory i set in a config.php and included on
              > > beginning of the document.
              > > Thanks for the advice
              > > chris
              > >
              > >
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Clubberboy

                #8
                Re: php variable in html

                Op Thu, 4 Dec 2003 10:57:33 -0500 schreef "Savut" <webki@hotmail. com>:[color=blue]
                >I can't see any miss escaped slashes, it wont resolve[/color]

                It was a suggestion, not a solution. You should read better next time
                & you should read http://allmyfaqs.com/faq.pl?How_to_post to know how
                to post.



                --
                Ontvang hoogwaardig IT-consultancy en maatwerksoftwareoplossingen, professionele smart contract-audits en blockchain-advies, en boeiende e-learning-cursussen. Onze expertise omvat een breed scala aan diensten die uw bedrijf naar de volgende digitale fase leiden. Neem vandaag nog contact met ons op en ontdek hoe wij u kunnen helpen uw technologische doelen te bereiken

                Comment

                Working...