Jump to content

joebpa

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

joebpa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. From what you have mentioned i gather that the ($mailTo can be replaced with the $recipient in any area?). If this is true teh what you have mentioned would make sense. Does teh mailing program within PHP understand that i am not using the $mailTo, but instead the $recipient? On your comment about the posting ($_post) in teh form towards the bottom of it tehre are entries that use a $slice to pull the $_post. Is this what you were talkign about? Please bear in mind i didnt not write this i am playing catch up on the problem.
  2. I am attempting to have one form that can potentially send to multiple E-mail addresses depending upon which address is found in the main page. The form will send E-mail if i specify the address, but not when i use the $recipient. Windows 2003 web edition PHP 5.1.6 IIS 6 Here is the form: <HTML> <HEAD> <TITLE>mail</TITLE> </HEAD> <BODY> <?php //define who is to receive the mail $mailTo = $recipient; //set the subject $mailSubject = $subject;             //build body of the message $mailBody = "This is the content of the mail received to Prime: \n\n"; //add a from header $mailHeaders = "From: PW-Server Liberty Form Mailer\n"; //send mail // print("Submitting the following information:<P>");   while ($slice = each($_POST)){ //print($slice[0]." = ".$slice[1]."<BR>"); $mailBody .= $slice[0]; $mailBody .= "=".$slice[1]; $mailBody .= "\n\n"; } if(mail($mailTo, $mailSubject, $mailBody, $mailHeaders)){   //  if(mail($mailTo, $mailSubject, $mailBody, $mailHeaders)){ print("<h2>Your form was successfully submitted.</h2>"); print("<b>Thanks!</B>"); }else{ print("<h2>Submission Failed!</h2>"); } ?> </BODY> </HTML> If i replace the $recipient with an E-mail account it will send with all information contained in the HTML form. This is what the HTML form looks like: <html> <head> <title>Liberty Formals</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <Body> <Table>             <form action="http://www.libertyformals.com/formmail.php" method="post">               <input type=hidden name="recipient" value="my@email.net">               <input type=hidden name="subject" value="Liberty Tux Reuest">               <input type=hidden name="redirect" value="http://www.libertyformals.com/contresponse.htm">               Name:               <input type="text" name="Name" size="33" maxlength="100">               <br>               Company:               <input type="text" name="comp" size="30" maxlength="100">               <br>               Address 1:               <input type="text" name="add1" size="30" maxlength="100">               <br>               Address 2:               <input type="text" name="add2" size="30" maxlength="100">               <br>               City/State/Zip:               <input type="text" name="city" size="15" maxlength="100"> ***removed the rest so it wouldnt be so long. The form pulls the subject line and redirects me, but will not pull the recipient line? Can anyone shed some light for me. ???
  3. Here is something i found out on my server. I have a similar issue that might be the same as yours. I have a main.html page with a php script inside the file using the include statement. The html file doesnt display anything from the php, but if i copy the entire html file and name the file ending in php it works great. Here is the contents of the main.html file: <html> <head> <meta name="generator" content="Microsoft FrontPage 4.0"> <meta http-equiv="content-Type" content="text/html; charset=utf-8"> <style> p { margin-top: 0px; margin-bottom: 1px } body { font-family: "Times New Roman", serif; font-size: 12pt; font-weight: normal; font-style: normal } </style> </head> <body> <p style="text-align: center"><span style="font-family: Impact, sans-serif; color: #c10026"><font size="7">This is the Future Home Page of our web site.</font></span></p> <br> <p style="text-align: center"><span style="font-family: 'Century Gothic', sans-serif; color: #008080"><font size="6">This site is currently under construction.</font></span></p> <p style="text-align: center"><span style="color: #008080"><span style="font-size: 16pt"><span style="font-family: 'Century Gothic', sans-serif">Please use the back button of your browser to exit this site.</span></span></span></p> <br> <p style="text-align: center"><span style="color: #800080; font-family: 'Arial Narrow', sans-serif"><font size="5">Thank you for your patience and hope to see you soon.</font></span></p> <br> <font face="helvetica,verdana,arial" size="-2"><p align="center"> <img src="Construction.gif"> </font> <p align="center">&nbsp;</p> <p align="center"> <font face="helvetica,verdana,arial" size="-2">This site is being hosted by <a href="http://www.ourwebsite.com" target="_blank">ourwebsite</a>, a Division of ourcompany, Inc.</font></p> </body> </html> <?PHP include ("counter.php"); ?> If this same file is called main.php teh script runs, but not if it ends in .html hope this helps some. If at first you dont succeed your a programmer.
  4. Windows 2003 Web Edition running IIS 6 with PHP 5.1.6. I am wondering where is the best place for my forms created using php? I have multiple sites located on the same physical server and would like one location to manager all my forms. The plan is to seperate the websites by directories within the forms directory on the server. Do I need to modify the php.ini to accomodate this? Any assistance would be appreciated.
  5. I currently have a windows 2003 web edition server W/ php installed. I have followed many instructions, but had litle success until recently. Thanks, to wildteen88 for the link i found in one of your responses. I am now able to pull up the phpinfo from the local wwwroot and from one of my websites. Here is the breakdown of what works and what doesn't 1. http://localhost/info.php           This file consists of (<?php                                       // Show all information, defaults to INFO_ALL                                       phpinfo();                                       ?> and properly displays the php information 2. Copied the same info.php file to one of my websites (located on the same server)     www.mywebsite.com/info.php this also displays properly. 3. attempt to get counter working     www.mywebsite.com/counter.php counter does run and incriment correctly. 4. attempted to add the counter to the main page of this website (index.html). The command added on the bottom of the index.html file was (<?PHP include ("counter.php"); ?>). Nothing displayed. 5. Created a new blank html document called (indexphp.html) and only added one line (<?PHP include ("counter.php"); ?>). All I receive is a blank page. I am assuming that php is installed correctly based on the responses above, and that this is a problem with the html page calling/executing the php script. NOTE** our original server that lost its active directory information to the IIS user accounts due to active directory crashing was running on a windows 2K server with IIS 5 and php 3. Are we just missing the proper coding or is this something with the configuration. All php files are in the php directory and c:\php was added to the path. Are there programing/coding issues when trying to run scripts created with ver 3 and now using ver 5? Thanks in advance. Semper Fi. Joe
  6. Old server - Windows 2K, IIS5, Php3, usings forms to send mail. Server was part of Active directory until the AD server crashed and had to be rebuilt. This caused the IIS account to be lost. IIS runs but php3 stuff doesnt. Resolution create new server. New server on different platform - Windows 2003 web edition, IIS 6, Php5. This server is not part of a domain (I.E. NO A/D). All web pages run correctly but no PHP stuff works. Followed these instruction to install: http://www.visualwin.com/PHP/ http://www.peterguy.com/php/install_IIS6.html http://www.webhostgear.com/203.html http://www.stevedawson.com/article0007.php As you can see i have tried many different processes to get it installed and running. They all say pretty much the same, which leads me to one conclusion it is an IBT error. Is there any place that has instructions on how coding should be to call php stuff when using a index.html file as the main page? If the server is configured correctly then it must be my lack of knowledge on how php works (deffinately a solid thought). Here is the web link to a basic construction page where i tried to add a counter. http://www.libertyformals.com/ I have added code for the counter and also added a link to a counter under it, but only one counter shows. Am i missing access permission? Is my code wrong? Is php not installed/correctly? Is there syntax that i should be aware of? someone please direct me to the link or page that has my answer. I cant even get the test php to run. :(
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.