Jump to content

dunn_cann

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dunn_cann's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Have finally managed to get mail() up and running. Are there any security issues/vulnerabilities that i should be aware of now? Thanks in advance.
  2. Hello there! I am running Windows XP Home Edition and Xampp 1.5.5. Could someone tell me how to enable mail() please! Thanks in advance.
  3. Agh! Now i can see what you mean. Thanks for the help and patience.
  4. It's suppose to be a multiplication table but it's not displaying the correct answers and they are all on the same line?
  5. If i was to type in the number 10 the result i would get is below: 10 x 1 = 1010 x 2 = 2010 x 3 = 3010 x 4 = 4010 x 5 = 5010 x 6 = 6010 x 7 = 7010 x 8 = 8010 x 9 = 9010 x 10 = 100 Thanks for any and all help.
  6. Have been trying to follow this multiplication table tutorial but can't get it right. Could someone point out where i'm going wrong with this table please. [code] HTML Code <html> <head> <title>HTML Form</title> </head> <body> <form action="table_results.php" method="post"> Enter the multiplication table number<input type="text" name="table" size="2"> <input type="submit"> </form> </body> </html> PHP Code: <html> <head> <title>Table_Results</title> </head> <body> <?php $cnt = 1; $table = $_post['table']; while($cnt != 11) { echo "$table x $cnt = ".$table * $cnt; $cnt++; } ?> </body> </html> [/code]
  7. For some reason i keep making a mess of things couldn't someone help me out here please
  8. Could someone please help me out here? I have been trying to include an email address/url into a form so that i could if wanted send the results of the form to a colleague for example. Thanks all. HTML Code: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=iso-8859-1"> <title>Feedback Form</title> </head> <body> <u>Please complete this form to submit your feedback:</u> <br /> <form action="handle_form.php" method="POST"> Mr. <input type="radio" name="title" value="Mr." /> Mrs. <input type="radio" name="title" value="Mrs." /> Ms. <input type="radio" name="title" value="Ms." /> <br /> Name: <input type="text" name="name" size="20" /> <br /> Email Address: <input type="text" name="email" size="20" /> <br /> Response: <select name="response"> <option value="excellent">This is excellent.</option> <option value="okay">This is okay.</option> <option value="boring">This is boring.</option> </select> <br /> Comments: <textarea name="comments" rows="3" cols="30"></textarea> <br /> <input type="submit" name="submit" value="Send My Feedback" /> </form> <!-- Feedback.html --> </body> </html> PHP Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=iso-8859-1"> <title>Practice Page</title> </head> <body> <?php // Script 3.4 - handle_form.php ini_set ('display_errors',1); // Let me learn from my mistakes. // This page receives the data from feedback.html. // It will receive: title, name, email, response, comments, and submit. print "Thank you {$_POST['title']} {$_POST['name']} for your comments. <br />"; print "You stated that you found this example to be {$_POST['response']} and added: {$_POST['comments']}"; ?> </body> </html> [/code]
  9. I'm still very much a noob but i like reading and taking examples from my book: PHP for the world wide web. By Larry Ullman. Plus all the help that is available from other members of this forum is first class. I also downloaded and installed Xampp 1.5.5 so that i can learn all about PHP on my computer. Good luck!
  10. Howz that! yer highness
  11. Hiya Ken have modified the post as requested.
  12. I used the following html to construct the form: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=iso-8859-1"> <title>Feedback Form</title> </head> <body> <u>Please complete this form to submit your feedback:</u> <br /> <form action="handle_form.php" method="POST"> Mr. <input type="radio" name="title" value="Mr." /> Mrs. <input type="radio" name="title" value="Mrs." /> Ms. <input type="radio" name="title" value="Ms." /> <br /> Name: <input type="text" name="name" size="20" /> <br /> Email Address: <input type="text" name="email" size="20" /> <br /> Response: <select name="response"> <option value="excellent">This is excellent.</option> <option value="okay">This is okay.</option> <option value="boring">This is boring.</option> </select> <br /> Comments: <textarea name="comments" rows="3" cols="30"></textarea> <br /> <input type="submit" name="submit" value="Send My Feedback" /> </form> <!-- Feedback.html --> </body> </html> And i constructed the PHP Script as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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=iso-8859-1"> <title>Practice Page</title> </head> <body> <?php // handle_form.php ini_set ('display_errors',1); // Let me learn from my mistakes. // This page receives the data from feedback.html. // It will receive: title, name, email, response, comments, and submit. print "Thank you {$_POST['title']} {$_POST['name']} for your comments. <br />"; print "You stated that you found this example to be {$_POST['response']} and added: {$_POST['comments']}"; ?> </body> </html> [/code] Could someone tell me how i might include an address/url into the php script so as i could then be able to send the received data onto a colleague for example. Thanks for any and all help.
  13. Have just successfully completed my very first form and received the data via php (woo hoo!). But could someone please explain how i might now send that data (after it has been read) onto another email address/url. Thanks for any and all help!
  14. Hiya Obsidian I have only got as far as creating my own variables so far in my PHP education and just wanted to know how to add the date correctly but i'll definately be checking out the other date/time handling functions you have provided the links for. Big thanks!!
×
×
  • 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.