Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post

    ASK php dan html?

    I am wondering . if I were to call html tag in php code
    It just should be like this, right?
    <?php
    echo " any html tag"
    ?>

    righT?

    so what 's wrong with my script?

    <?php
    echo"
    <body>
    <div align=center><font size=+3 family=arial color=blue> <b>This site is currently under development m </b> </font> </div>
    <br>
    <p>
    <div align=center><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHfwYJKoZIhvcNAQcEoIIHcDCCB2wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCyz30aaJKDx/FiNIw8OouzHULmNG2LhC9//QNRdlACqDILM2lJsXfZW7NUL75SV7fLM0UlipBLZO/TKx+l9pNkoi/qvDYKTtiPQJsH96j3RBIieFZOKBaieoxQMSHWix3BmjyXNqNcnUVrPDNPLLwih3jDNlN7cRuXJsB5tVV05jELMAkGBSsOAwIaBQA wgfwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQITIRAzHnRVGOAgdijkkjlhdydf4aPoESrMA7Nmv7sHcfvXpwxC7kjkCWpyfaWSGx SfI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ExFjAUBgN VBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZ lX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbYIBADAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAIFfOlaagFrl71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIy fmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA 1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZ UBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNzAyM TYwMzQ0MDFaMCMGCSqGSIb3DQEJBDEWBBREyPj+wNfOmWQ7QFTVFgbhFs6aHzANBgkqhkiG9w0BAQEFAASBgHtEpIDrxgDo078q7 b0ggG333NkyO/qUTlZCBhhmH6MsQanrX93n5e7HHVkgzTP7gzRYBdZQr94xnWErLJ3VLzB3ak5G7mlF6vARwBGnfRQYCZXv8RlrhWucfxDlwmTAY1 XtzLR2ymoqCMM3wC4TkrmkAyGpGqwA9uVyj8ScVct+-----END PKCS7-----
    ">
    </form></div></p>

    <br>

    <div align=center><font family=Courier New size=+2><p> Click here to see list of my project</p> </font> </div>

    </body>
    "
    ?>
    I suspect it will be because that paypal thing I put on . right?
    Thanks.

  • #2
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    well maybe I missed ; after using echo . but it still doesnt work . what you guys think ?
    Last edited by likon; 07-17-2007 at 06:59 AM.

  • #3
    New Coder
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this:
    PHP Code:
    <?php
    echo <<<EOT

    //Your HTML Coding

    EOT;
    ?>

  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    Just to expand - the problem is that your html contains " which need to be escaped or replaced with ' if you want to enclose your string with "
    The EOT thing will work but you could just as easily close your php tags above the html and reopen them when you need to do some php again. You're not using any php variables in that chunk of code so theres no reason to use php to output it

  • #5
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    it works now . yea.. maybe I simply use html would be enough. but anyway I am just new to programming so ...you know. alil bit of try and error...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •