Test PHP site does not work

Hello

I did this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html listed in the FAQ of the forum page.

I followed the instructions:

* MAMP installed and configured on my Mac OS X.

* Make sure that the pre-installed Apache web server wasn't already on my computer.

* Set up a PHP site in Dreamweaver.

* Check that everything had been set up properly by creating a PHP page. I used the script <? PHP phpinfo();? > so that my Web page just displays the PHP configuration information.

When I clicked on "Live View" in Dreamweaver to display my Web page it was nothing, just a white screen.

I Redid the tutorial just to make sure I don't have any errors, but still I get only a blank page.

Help, please!

Thank you

Erin.

erinlc wrote:

Oh sorry... don't think you got the points you deserve for giving me the right answer. Not sure why it happened.

Erin

Da Ding Dang Doodle!

I'm celebrating here too...

I remember when I first put in place a test thingy on my PC.  I felt so out of my depth, it was as if I had learned Spanish to take a holiday in Tibet or something (they speak Spanish in Tibet do?).

Martin

Tags: Dreamweaver

Similar Questions

  • Domain redirection to namecheap my version of the mobile site does not work well

    Hi, the mobile version of my site does not work after the redirect domain to namecheap.

    I have to set something?

    Sorry for my bad English

    Please check the dns management where you added the front end, its added field correctly then it should work fine.

    URL of the site will help you to study.

    Thank you

    Sanjit

  • How can I cancel my plan? I followed the steps recommended by Adobe, but when I click in 'manage plan' site does not work... Could someone help me, please?

    Hello

    How can I cancel my plan? I followed the steps recommended by Adobe, but when I click in 'manage plan' site does not work... Could someone help me, please?

    Hello

    Please contact adobe support https://helpx.adobe.com/in/contact.html?step=PHSP-PHXS_how-tos-troubleshooting_troubleshoo t_stillNeedHelp

    Thank you

    Jitendra

  • Google and other Web sites does not work after installing Bitdefender Internet Security.

    After that installation of the version of Bitdefender Internet Security offered to the 60-second-anti-virus plugin for Firefox of Bitdefender, a number of sites have stopped working. First of all, I cannot change my homepage, because the connection hangs, and Web site does not open. In addition, tries to connect to a number of Web sites (Google, Youtube, Yahoo, DuckDuckGo, etc.) created this site:
    "Secure connection failed".

    An error occurred when connecting to www.google.com. The server has rejected the transfer protocol because the customer to a lower version of TLS on the server supports. (Error code: ssl_error_inappropriate_fallback_alert)

       The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
       Please contact the website owners to inform them of this problem."
    

    In short, a lot of great websites do not work and are seriously harming my ability to work. Bing works as a site search engine that I can go to, but not as a home page. I desperately need help with this problem...

    Hi pokator, can you try disabling ssl scanning in bitdefender options and see if that makes a difference?
    http://www.BitDefender.com/support/what-to-do-when-security-certificates-cannot-be-verified-installed-1090.html

  • Overview of the site does not work in any browser.

    Site Overview does not work in one browser. WTF?
    PC, 64-bit, W7.

    The problem is resolved. The problem in the browser.

    Control Panel-> network and Internet-> Web Options-> click on the "Advanced" tab and click on the bottom of the "Reset...".
    Then, you turn your "default browser" browser.

  • I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The solution on the Adobe Web site does not work...

    I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The proposed solution on the Adobe (CS3 products download) website does not work...

    If the page that you are connected does not work, then it should so what happens when you try?  It is possible that it could be a simple matter of enable you cookies or try a different web browser.

    You can also try to download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

  • Site does not work in some browsers

    I transferred my site via an external ftp host.

    It works in some browsers, such as Explorer 10.

    But it does not work in 11 of Explorer, Firefox, Safari and Chrome.

    You can go to the website and see the first page, but you can't use the menu and go to the other pages.

    What can be done to fix this?

    There seems to be an object (probably an empty text block) on the top, obscuring most (all?) of the menu. The object has no border or background. That is to say up to 10 have a bug that allows the mouse events through objects that have no fill or stroke (which is contrary to the HTML specification and not how other browsers work).

    Delete the empty and everything should work as expected.

  • 280 G1 Micro Tower HP: Chipset driver needed for HP 280 G1 Micro tour Win 7 32 Bit Driver on the HP Sup site does not work

    Driver chipset on the HP support site does not load correctly.  All other drivers will charge properly.    Can someone point me to a chipset driver that is installed correctly?

    Thank you!

    Hello:

    Try the one directly from Intel...

    A 2nd on the left side of the page is the automatic installation file.

    https://Downloadcenter.Intel.com/download/20775/Intel-chipset-device-software-INF-Update-utility-

  • Installation of 6.0 SDK Update site does not work

    My developer zone account does not work to install the new SDK. I've already changed my password several times.

    Enter the login several times will cause installation to fail...

    Any ideas?

    Finally, I solved the problem. You must enter your email at the bottom of case...

  • Site does not work on iPad - bar full screen does not full screen

    FREEQUENT home

    The top dark grey bar goes from one side to the other, also on the iPad and pc/mac

    But the clear behind instagramfeed gray bar and dark gray bar background starts from the left, but finished in 5 cm front right on iPad! Im going crayy here.

    The two bars, I copied from the top bar to fix the problem, but still does not work

    Hi hege_d,


    I can't reproduce the problem of 5cm on the ipad. Were you able to fix this issue? Please specify.

    For questions please also send the file to [email protected] to study.

    Kind regards

  • Form of contact-checkbox PHP coding does not work

    I'm a newbie to the design of web pages, so I would be grateful if you could explain me what PHP coding I would need to "Checkbox" and where to place them in the PHP coding below. I can send the form to my email with all topics and filled in the forms with the Yes or no box.

    Only problem I have is that the part of the info in the box appear right at the top of the message electronic rather than the "Name", "Such", "Email" etc... Another half of the box appear where it suppose to be wih double position as shown below. I also want to remove the < br > e-mail message. You can also tell me how to change the color for the position so clear sound.

    I wrote the code box in BLUE for HTML and PHP coding below. Sorry for the long coding. Look forward to hearing from someone. Very much appreciated.

    Message delivered to the email address as received:

    Rear ground extension: Yes

    Two-storey rear extension: Yes
    Two-storey side extension: No
    Loft: Yes
    New Build: Yes

    Other: Yes

    Name: Test<br>
    Email: [email protected]<br>
    Contact No: 87576as<br>
    Address1: addy1<br>
    Address2: addy2<br>
    Town: town<br>
    County: county<br>
    Postcode: post<br>
    Property Type: Cottage<br>
    Property Area: None<br>
    Message:<br>
    test msg

    My HTML coding for the form:

    < div class = "contact form" >
    < form id = "form1" name = "form1" method = "post" action = "test2.php" >
    < fieldset >
    < legend > < strong privacy > < / strong > < / legend >
    < table width = "690" border = "0" >
    < b >
    < td width = "340" > < p >
    < label = 'name' class = "contactLable" > name: < / label >
    < input name = "name" type = "text" id = "name" tabindex = "10" size = "30" / >
    < /p > < table >
    < td width = "340" > < p >
    < label = "contact_number" class = "contactLable" > Contact No.: < / label >
    < input name = "contact_number" type = "text" id = "contact_number" tabindex = "20" size = "30" / >
    < /p > < table >
    < /tr >
    < /table >
    < table width = "690" border = "0" >
    < b >
    < td > < p >
    < span id = "sprytextfield1" >
    < label for class = "email" = "contactLable" > Email: < / label >
    < input name = "email" type = "text" id = "email" tabindex = "30" size = "30" / >
    < span class = "textfieldRequiredMsg" > a value is required. </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < /p > < table >
    < /tr >
    < /table >
    < / fieldset >
    < fieldset >
    < legend > < strong > < facilities > project information < / legend >
    < p > < table width = "690" border = "0" >
    < b >
    < td width = "340" > < p >
    < label = "address1" class = "contactLable" > address 1: < / label >
    < input name = "address1" type = "text" id = "address1" tabindex = "40" size = "30" / >
    < /p > < table >
    < td width = "340" > < p >
    < label = "address2" class = "contactLable" > address 2: < / label >
    < input name = "address2" type = "text" id = "address2" tabindex = "50" size = "30" / >
    < /p > < table >
    < /tr >
    < b >
    < td > < p >
    < label for class = "City" = "contactLable" > City: < / label >
    < input name = "City" type = "text" id = "City" tabindex = "60" size = "30" / >
    < /p > < table >
    < td > < p >
    < label = 'County' class = "contactLable" > County: < / label >
    < input name = "County" type = "text" id = "County" tabindex = "70" size = "30" / >
    < /p > < table >
    < /tr >
    < b >
    < td > < p >
    < label for class = 'postal code' = "contactLable" > postal Code: < / label >
    < input name = "PostalCode" type = "text" id = "PostalCode" tabindex = "80" size = "10" / >
    < /p > < table >
    < td > < table >
    < /tr >
    < b >
    < td > < p >
    < label = "propertyType" class = "contactLable" > Type of property: < / label >
    < select name = "propertyType" id = "propertyType" tabindex = "90" >
    Select < option > please < / option >
    Detached < option > < / option >
    < option > combined < / option >
    < option > end of Terrace < / option >
    Mid-terrace < option > < / option >
    < option > dish < / option >
    Bungalow < option > < / option >
    Cottage < option > < / option >
    < option > other < / option >
    < / select >
    < /p > < table >
    < td > < p >
    < label = "propertyArea" class = "contactLable" > property: < / label >
    < select name = "propertyArea" id = "propertyArea" tabindex = "100" >
    Select < option > please < / option >
    < option > None < / option >
    Listed Building < option > < / option >
    Conservation Area < option > < / option >
    < / select >
    < /p > < table >
    < /tr >
    < /table >
    < /p >
    < / fieldset > < fieldset > < legend > < strong project Type > < / strong > < / legend >
    < table width = "690" >
    < b >
    < td width = "338" > < label >

    < input name = "rearExt" type = "checkbox" class = "contactCheckbox" id = "CheckboxGroup1_0" tabindex = "110" value = "rearExt" / >
    Back to the floor extension < / label > < table >
    < td width = "340" > < input name = "sideExt" type = "checkbox" class = "contactCheckbox" id = "CheckboxGroup1_1" tabindex = "120" value = "sideExt" / >
    Extension of land-side < table >
    < /tr >
    < b >
    < td > < input name = "twoStoreyRear" type = "checkbox" class = "contactCheckbox" id = "twoStoreyRear" tabindex = "130" value = "twoStoreyRear" / >
    Extension back double-decker < table >
    < td > < input name = "twoStoreySide" type = "checkbox" class = "contactCheckbox" id = "twoStoreySide" tabindex = "140" value = "twoStoreySide" / >
    Extension to two-storey side < table >
    < /tr >
    < b >
    < td > < input name = "loft" type = "checkbox" class = "contactCheckbox" id = "loft" tabindex = "150" value = "loft" / >
    Loft conversion < table >
    < td > < input name = "new construction" type = "checkbox" class = "contactCheckbox" id = "new construction" tabindex = "160" value = "newBuild" / >
    New construction < table >
    < /tr >
    < b >
    < td > < input name = type 'flat' = "checkbox" class = "contactCheckbox" id = "flat" tabindex = "170" value = "flat" / >
    Flat conversion < table >
    < td > < input name = "other" type = "checkbox" class = "contactCheckbox" id = "other" tabindex = "180" value = "other" / >
    Another conversion < table >
    < /tr >
    < /table >
    < / fieldset >
    < fieldset > < legend > < Message > < / strong > < / legend >
    < p >
    < label for the class = "message" = "contactLable" > your Message or comments: < / label >
    < name textarea = 'message' id = cols "message" = "45" lines = "5" tabindex = "190" > < / textarea >
    < /p >
    < / fieldset >
    < br / >
    < input type = "submit" name = "Submit" id = "Submit" value = "Submit" tabindex = "200" / >
    < / make >
    < / div >

    PHP code to send to my email:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < META HTTP-EQUIV = "refresh" content = "0; URL = thankyou.html">
    < title > < /title > E-mail form
    < / head >

    < body >
    <? PHP
    $name = addslashes($_POST['name']);
    $contact_number = addslashes($_POST['contact_number']);
    $email = addslashes($_POST['email']);

    $address1 = addslashes($_POST['address1']);
    $address2 = addslashes($_POST['address2']);
    $town = addslashes($_POST['town']);
    $county = addslashes($_POST['county']);
    $postcode = addslashes($_POST['postcode']);

    $propertyType = addslashes($_POST['propertyType']);
    $propertyArea = addslashes($_POST['propertyArea']);

    $rearExt =($_POST['rearExt'])? "" Back to the floor extension: Yes ': "" back to the floor extension: No. ";"
    $sideExt =($_POST['sideExt'])? "' Land extension side: Yes": "' land extension side: No."; "
    $twoStoreyRear =($_POST['twoStoreyRear'])? "" Two-storey rear extension: Yes ': "" extension back to two floors: No. ";"
    $twoStoreySide =($_POST['twoStoreySide'])? "" Two-storey side extension: Yes ': "" extension aside two floors: No. ";"
    $loft =($_POST['loft'])? "" Loft: Yes ":" ' Loft: No. ";"
    $newBuild =($_POST['newBuild'])? "" New generation: Yes ': "" new generation: No. ";"
    $flat =($_POST['flat'])? "' Dish: Yes": "' dish: No."; "
    $other =($_POST['other'])? "" Others: Yes ': "" others: No. ";"
    other $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n$newBuild\n$wflat\n$;


    $message = addslashes($_POST['message']);

    You can specify which email you want your contact form to be emailed here

    $toemail = " " [email protected] "; "
    $subject = "of the Web site test."

    $headers = "MIME-Version: 1.0\n.
    ." From: \"".$name. » \ » < ". $email. "" > \n ".
    ." Content-type: text/html; charset = iso-8859-1\n ";

    $body = "name:". " $name. "" < br / > \n ".
    ." E-mail: '. '. $email. "" < br / > \n ".
    ." Contact No.: ".." $contact_number. "" < br / > \n ".

    ." Address1: ".." $address1. "" < br / > \n ".
    ." Address2: ".." $address2. "" < br / > \n ".
    ." City: ".." $town. "" < br / > \n ".
    ." County: '. '. $county. "" < br / > \n ".
    ." Postal code: ".." $postcode. "" < br / > \n ".

    ." Property type: ".." $propertyType. "" < br / > \n ".
    ." Property: ".." $propertyArea. "" < br / > \n ".

    . "Back to the floor extension:". " $rearExt. "" < br / > \n ".
    ." Land extension side: ".." $sideExt. "" < br / > \n ".
    ." Two-storey rear extension: ".." $twoStoreyRear. "" < br / > \n ".
    ." Two-storey side extension: ".." $twoStoreySide. "" < br / > \n ".
    ." Loft conversion: ".." $loft. "" < br / > \n ".
    ." New generation: ".." $newBuild. "" < br / > \n ".
    ." Dish: ".." $flat. "" < br / > \n ".
    ." Other: ".." $other. "" < br / > \n ".


    ." "Message: < br > \n".
    . $message;

    If (! ereg ("^ [a-zA-Z0-9_] + @[a-zA-Z0 - 9-] + \.")) [a-zA-Z0 - 9-------.] + $"(, $email))"
    {
    echo "is not a valid email address.  "Please return to the.
    . "previous page and try again. ';
    "exit";
    }

    mail ($toemail, $subject, $body, $msg, $headers);
    echo "thank you for your comments";
    ? >
    < / body >
    < / html >

    This topic has been moved to the Dreamweaver application development forum, which deals with PHP and other issues aside server.

    I don't know where you got your PHP script, but it's bad writing. The reason why you get no results from the boxes because the script does not add to the body of the e-mail message and submits them to the mail() function in the argument which must contain the headers. This also explains why
    is in the email, because the HTML header is in the wrong argument.

    Remove all variables of the addslashes() function assignments. For example:

    $name=addslashes($_POST['name']);
    

    must be:

    $name = $_POST['name'];
    

    The code to get the results of the check box should look like this ("isset" insert):

    $rearExt = isset($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
    

    Change the following line:

    $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n $newBuild\n$wflat\n$other";
    

    to do this:

    $msg = "$rearExt
    \r\n$wsideExt
    \r\n$twoStoreyRear
    \r\n $twoStoreySide
    \r\n$loft
    \r\n$newBuild
    \r\n$wflat
    \r\n";

    Headers should look like this:

    $headers = "MIME-Version: 1.0\r\n
                From: $name <" . $email . ">\r\n
                Content-type: text/html; charset=iso-8859-1";
    

    Each line in the body of the message should be followed by a return character and line transport, not only a new line character. In addition, because you use double quotes, you need not to keep opening and closing them. Variables can be placed in quotes. The first lines should look like this:

    $body = "Name: $name
    \r\n Email: $email
    \r\n Contact No: $contact_number
    \r\n

    The final closing quotes come at the end of the $body statement, which should include the values of your boxes like this:

            Other: $other
    \r\n $msg Message:
    \r\n $message";

    The line that sends your email should look like this:

     mail($toemail, $subject, $body, $headers);
    

    There are other improvements that could be made to the script, but the ones I listed should solve your problems.

    If you are interested in learning how to properly use PHP, you might like to take a look at my book, PHP Solutions, 2nd edition. Among other things, it shows you how to create a much friendlier e-mail form which verifies the required fields and preserves user input, if errors are found.

  • Web site does not work in FF but works in Chrome and IE

    No idea why this map of sin does not appear in FF but works in IE and Chrome?

    https://TPWD.Texas.gov/fishboat/fish/programs/gofishing/santoniofish/satx_map.phtml

    You will notice that there a shield icon on left (globe/lock) "Site identity button" on the address bar to indicate that the mixed active content is blocked.

    There is also an error in the Web Console (Firefox/tools > Web Developer).

    Blocked active content mixed loading"http://maps.googleapis.com/maps/api/js?key=AIzaSyDfhSEgHCTbghyruX1xpH26tysiRJI78og & sensor = false' [more]

    You need to change the HTTPS URL or leave out the Protocol:

    <script type="text/javascript"
        src="//maps.googleapis.com/maps/api/js?key=AIzaSyDfhSEgHCTbghyruX1xpH26tysiRJI78og&sensor=false">
    </script>
    
  • My site does not work on smartphone/Tablet/mobile devices. Why?

    My site is display differently and does not not on mobile devices such as the iPad and the iPhone, etc.

    I have to double tap to bring up submenus, sometimes they come to all the... Everything is shifted to the left and some content is not displayed correctly. How can I fix?

    Muse pages are currently coded to work with desktop browsers. You may experience inconsistent behavior/display on mobile devices. The team is currently reviewing workflows and solutions for mobile/tablet device browsers.

    We have also updated the tutorial to get started with Adobe Muse (part 7) to include information on how to address the consistency in your design with several devices:

    Make a user friendly site of device

    http://www.adobekb.com/getting_started_07.html#makingdevice

    Please provide your comments on the mobile site design to the product team of Muse in the following topic:

    Muse team looking for Mobile Web site comments

  • Generated code with edge of adobe for my site does not work with fireox, but done with IE9 and chrome. Why?

    The first time I opened Firefox with the code in my site, it has worked. Since then, it has not worked. I tried it on another computer and it worked perfectly. This computer is running under Windows XP.

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    With the help of "Forget this Site" remove all of this area like bookmarks, cookies, passwords, cache, history, and exceptions, so be careful if you have to keep the passwords or other data of this site.

    You can't recover from which "forget" unless you have a backup of the affected files.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

  • My edge site does not work in IE9, or less, how to fix this?

    I made my website and on-board navigation buttons, then people need to navigate the site. It does not appear in IE 9 or an earlier version.

    The most popular solutions. Thank you.

    Yes, the end-user will be able to view the animation - but it is best to check if you have access to a browser at a lower level.

    Also a brief overview of the publication options - http://tv.adobe.com/watch/learn-edge-animate/publishing-and-integration/

    Darrell

Maybe you are looking for

  • 6510 printer all-in-one: horizontal streaks on 6510 all-in-one

    I have horizontal stripes when printing. Lived all the Hp steps recommended to solve the problem and it still exists. Other than to go to a service center is there still something I can do to solve the problem? Would it not be cheaper to buy a new pr

  • Satelltie A200 - no power at all

    Hi all After searching for hours, I finally found a decent site, anyway, the problem...I have no power going to my laptop at all. I bought a new charger and battery but still nothing. I read that there may be a connection burned inside or something?I

  • Need of WinDVD Creator for my Satellite M60-104

    Hey guys,. I need your help. I formatted that my laptop and I can not find the WinDvdCreator.There is WinDVD but not the WinDvdCreator. From what I remembered, 2 years ago I formatted the laptop and I was able to install that program, but now I can't

  • Latency of IMAP in Mail

    No doubt others have asked this question, but I have not be able to locate the answers - so apologies in advance if it duplicates the previous messages. I am a user of e-mail veteran, who moved from Eudora mail when I moved from POP IMAP in iCloud. I

  • Stack overflow

    I get a stack overflow message when I'm trying to run a game.  The game in question is Spirit Seasons.  It's not a battery any online exceeded error message.  It just says: stack overflow.  I installed Fixit Center.  Can not solve the problem. Help,