Jump to content

dgow13

Member
  • Posts

    69
  • Joined

  • Last visited

Posts posted by dgow13

  1. Fixed it. I added $email = '$email'; to the top of the form and $success = mail($email, $interest, $body, $headers); to the bottom.

     

    <?php
    /* subject & email veriables */
    $webMaster = 'dgow@simplewebs13.com';
    $email = '$email';
    
    
    /* date veriables */
    $name = $_REQUEST['name'];
    $email = $_REQUEST['email'];
    $phone = $_REQUEST['phone'];
    $interest = $_REQUEST['interest'];
    $date = $_REQUEST['date'];
    $message = $_REQUEST['message'];
    
    $body = <<<EOD
    <table width="500">	
    <tr><td>
    	Point Blank CHL Class Registration Confirmation
    <td><tr>
    </table>
    <br><hr><br>
    <table width="500">
    <tr><td style="width: 160px"/>Full Name:<td/>$name </tr>
    <tr><td style="width: 160px"/>Email:<td/>$email </tr>
    <tr><td style="width: 160px"/>Phone Number:<td/>$phone <tr/>
    <tr><td style="width: 160px"/>Class Registration:<td/>$interest <tr/>
    <tr><td style="width: 160px"/>Class Date:<td/>$date <tr/>
    <tr><td style="width: 160px"/>Special Instructions:<td/>$message <tr/>
    </table>
    <br><hr><br>
    <table width="500">
    <tr><td>
    	<font style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: gray; ">&copy Copyright 2013 - <a href="http://company.com">company.</a> All Rights Reserved.</font>
    <td><tr>
    </table>
    EOD;
    
    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $interest, $body, $headers);
    $success = mail($email, $interest, $body, $headers);
    
    include ('register.success.php');
    
    ?>
    

  2. I have an email form that I have used for awhile. The php process page sends the form data to whoever is listed in the webmaster email. It work fine. I need to add a confirmation email within the script so that whoever fills out the form. Any suggestions? Here is the register.process.php script.

    <?php
    /* subject & email veriables */
    
    $webMaster = 'dgow@simplewebs13.com';
    
    
    /* date veriables */
    $name = $_REQUEST['name'];
    $email = $_REQUEST['email'];
    $phone = $_REQUEST['phone'];
    $interest = $_REQUEST['interest'];
    $date = $_REQUEST['date'];
    $message = $_REQUEST['message'];
    
    $body = <<<EOD
    <table width="500">	
    <tr><td>
    	Class Registration Submission Form
    <td><tr>
    </table>
    <br><hr><br>
    <table width="500">
    <tr><td style="width: 160px"/>Full Name:<td/>$name </tr>
    <tr><td style="width: 160px"/>Email:<td/>$email </tr>
    <tr><td style="width: 160px"/>Phone Number:<td/>$phone <tr/>
    <tr><td style="width: 160px"/>Class Registration:<td/>$interest <tr/>
    <tr><td style="width: 160px"/>Class Date:<td/>$date <tr/>
    <tr><td style="width: 160px"/>Special Instructions:<td/>$message <tr/>
    </table>
    <br><hr><br>
    <table width="500">
    <tr><td>
    	<font style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: gray; ">&copy Copyright 2013 - <a href="http://company.com">company.</a> All Rights Reserved.</font>
    <td><tr>
    </table>
    EOD;
    
    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $interest, $body, $headers);
    
    include ('register.success.php');
    
    ?>
    

  3. That could be a potential issue if you are trying to use WAMP. If you use WAMP, it expects your files to be in the specific www folder that WAMP creates.

     

    My impression is that maybe you are having a conflict between WAMP and the server that comes installed with Expression Web? I'm not sure how much I can help you with this, unfortunately, since I haven't ever used Expression Web and am pretty happy with my current web dev software. You may want to look here: http://expression.microsoft.com/en-us/ee662148.aspx or do some Google searches regarding how to use the default server that comes with EW.

     

    I googled and also searched EW and was able to locate in EW site settings that i needed to change the php view path to: C:\wamp\bin\php\php5.3.0\php-cgi.exe. They do not tell you this. You're on your own.

     

    After reconfiguring settings in EW I saved my file, clicked to view page in localhost and got this message:

    Connection successful

     

    Welcome to MySQL database testing page.

     

    I had to use the password after "localhost','root','password' for it to work. I changed 'root' to 'roota' as he did in the video and got the correct error message.

  4. No, by default it shouldn't install any files. You would need to create your files wherever you installed WAMP to. In my case, C/wamp/www.

     

     

    Just select the most recent version with the highest version number. Mine is 5.3.0, though I installed it a little while ago so the most recent version may have a higher version number. (I'm not sure why you are getting this dialog though -- I don't believe I have ever been asked that.)

     

    I always have the websites and files in my "My Websites" folders whether they're html of php.

     

    The problem with selecting a version of PHP... it doesn't give me any options at all. Also, when I click ok without choosing anything it connects me to Microsoft Expression Development Server, localhost 5595. Then when I click on the phpmyadmin I get an error message and I am locked out. It isn't even the same phpmyadmin where i have all my databases at.

  5. I hate to say it, but I'm really not sure. When I test it on my machine, everything works as it should. As far as I can tell, there is nothing wrong with the code. It sounds like WAMP is running properly, and it seems like you are putting your files in the right place...

     

    One other option would be to try XAMPP instead of WAMP: http://www.apachefriends.org/en/xampp-windows.html

     

    When you open up your wampserver home page do you have files in the "Your Project" area? I do not.

     

    I created a new site called php demo. I installed the code and tried to open up the localhost. I get a window that pops up saying: "you need to select a version of PHP in the application option dialog. I click on it and I have no idea what to choose. I am about ready to call it quits. things shouldn't be this hard for me to understand.

  6. I opened up a new php page to follow along with the tutorial. I then installed wamp (tried to follow the video instructions but what he did and what my options were while instralling it, were not the same).

     

    wamp says all the services are running but when you hover over the icon it says it is off line.

     

    When I open up the page in the localhost it says: "Welcome to my MySQL database connection test page."

     

    Whwn I open it up online, after uploading it, it says: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/mychild/public_html/database.php on line 10

    Could not connect: Access denied for user 'root'@'localhost' (using password: NO)

     

    I checked my database for privileges and root, localhost are there.

  7. I am watching some of the videos of PHP and MySQL: Connecting. I have been watching video part 3 for over an hours now, typing in everything just as he does on the screen, multiple times, without the same success. I am placing the code below if someone would like to help.

     

    <head>
    	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    	<title>Untitled 1</title>
    
    		<?php
    
    			$my_connection = mysql_connect('localhost', 'root', '');
    
    			if (!$my_connection) {
    				die('Could not connect: ' . mysql_error());
    			}
    
    			echo 'Connection successful' . '<br><br>';
    
    			mysql_close($my_connection);
    
    		?>							
    
    </head>
    
    <body>
    	Welcome to my MySQL database connection test page.
    </body>

  8. Thanks. I am looking at Vertical Response to send them out. It is between $10.00 & $30.00 per month, depending on the quantity you send. I was just checking to see all my options before I committed to a program.

     

    Thanks again.

  9. I'm not sure this is even the forum for something like this but, I am wanting to send out an email design to try to create more business... pick up new clients. I used Exp Design to create the graphic and then inserted it into my email as part of a signature. Is there a way to send these emails out in mass without signing up for a service?

  10. Moved here about 12 yrs ago to be closer to my wife's parents... not my first choice. We came from the west coast area.

     

    I originally built my site before I started learning css, php, flash and now jquery. I am trying to clean up and reorganize while learning new things and building clients websites. Not enough time in the day to finish everything.

     

    The flash file included the text when I first built it but, then I removed it and kept the size... putting the text over it. I can resize the flash but I wanted to try and find a solution to this ie problem. It appears there are more than just myself with this problem. IE creates problems that firefox and chrome don't have.

     

    Any other advice on this problem?

  11. I inserted a swf file into a web page and then placed text over part of it. I then used the wmode=opaque so the text would say on top of the flash file. In firefox and google chrome it shows up fine but, in ie the text is hidden. I can see the text load but then goes away. Why?

  12. Thanks. I figured it out. On Apache I have to add this text "AddType application/x-http-php .html .moo .htm" in the .htaccess file for the domain I am working on. I was then able to include a php page in a div on the home page. Worked just fine.

     

    The tutorial on includes was great... you learn something new every day.

  13. I want to create 3 or 4 tabs within a web page that have different text or images in each section. When rolled over or clicked it displays that info without leaving the page. Are there any tutorials on this subject, and if so, can someone point me in the right direction?

  14. I figured out how to do the coding. This is how it ended up working.

     

    <?php
    		//php form data to email code//
    
    		$toName = $_REQUEST['toName'];
    		$toEmail = $_REQUEST['toEmail'];
    		$fromName = $_REQUEST['fromName'];
    		$fromEmail = $_REQUEST['fromEmail'];
    		$occasion = $_REQUEST['occasion'];
    		$message = $_REQUEST['message'];
    		$headers = "From: $fromEmail\r\nContent-type: text/html";
    
    		$email_message = "To:   {$toName}<br /><br />From:   {$fromName}<br />Senders Email:   {$fromEmail}<br /><br />Occasion:   {$occasion}<br /><br />{$message}<br /><br /><img src=\"http://www.happynewmonthstore.com/images/eCards/sept2010/hnm_ecard_sept2_img375.png\" alt=\"ecard_image\" />";
    		mail($toEmail,$occasion,$email_message,$headers);
    
    		?>

     

    Thank for your help.

  15. So what is the current PHP code you are working with? Providing the link shows me how the final rendered HTML looks, but PHP is processed on the server and I can't see it.

     

    Ecard page:

    <div class="ecard_form" style="left: 500px; top: 350px">
    			<form method="post" action="ecard_thankyou.php" id="ecard_form">
    				<span class="text_smOlive">To:<br />
    				</span>
    				<input name="toName" style="width: 250px" type="text" class="text_smOlive" class="required" />
    				<span class="text_smOlive"><br />
    				<br />
    				Recipients Email:<br />
    				</span>
    				<input name="toEmail" style="width: 250px" type="text" class="text_smOlive" class="required email" />
    				<span class="text_smOlive"><br />
    				<br />
    				From:<br />
    				</span>
    				<input name="fromName" style="width: 250px" type="text" class="text_smOlive" class="required" />
    				<span class="text_smOlive"><br />
    				<br />
    				Sender's Email<br />
    				</span>
    				<input name="fromEmail" style="width: 250px" type="text" class="text_smOlive" class="required email" />
    				<span class="text_smOlive"><br />
    				<br />
    				Occasion: <br />
    				<select name="occasion" style="width: 255px" class="required" >
    				<option></option>
    				<option>Happy Birthday</option>
    				<option>Happy Anniversary</option>
    				<option>Just Missing You</option>
    				<option>Happy Mother's Day</option>
    				<option>Happy Father's Day</option>
    				<option>Congratulations</option>
    				</select><br />
    				<br />
    				Your Message:<br />
    				</span>
    				<textarea name="message" rows="2" style="width: 250px" class="text_smOlive"></textarea><span class="text_smOlive"><br />
    				</span>
    				<br />
    				<br />
    				<input name="Submit" style="width: 100px; height: 20px" type="submit" value="Send Email" class="text_smOlive" /><br />
    				<br />
    			</form>
    		</div>
    

    Thank you page:

    <?php
    		//php form data to email code//
    
    		$toName = $_REQUEST['toName'];
    		$toEmail = $_REQUEST['toEmail'];
    		$fromName = $_REQUEST['fromName'];
    		$fromEmail = $_REQUEST['fromEmail'];
    		$occasion = $_REQUEST['occasion'];
    		$message = $_REQUEST['message'];
    		$headers = "From: $fromEmail\n\rContent-type: text/html";
    
    		$email_message = "To:   {$toName}\n\rEmail:   {$toEmail}\n\rFrom:   {$fromName}\n\rSenders Email:   {$fromEmail}\n\rOccasion:   {$occasion}\n\rYour Message:   {$message}\n\r<img src="http://www.happynewmonthstore.com/images/eCards/sept2010/hnm_ecard_sept2_img375.png" alt="ecard_image" />";
    		mail($toEmail,$occasion,$email_message,$headers);
    
    		?>		

  16. So... is this working? (as far as I can tell, it is) Is there something that you need help with, or are you just posting the link to demonstrate the final result?

     

    No, it is not working. Everything sends except the image. Can't figure out the code and where everything goes.

×
×
  • Create New...