Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 11th, 2004, 06:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
form tutorial

hey i did the form tutorial by matt wade i was wondering how i change it to make it email it to me?

Reply With Quote
  #2  
Old January 11th, 2004, 06:55 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

i forgot the code here it is
php Code:
Original - php Code
  1.  
  2. <?
  3. if(isset($_POST['submit'])) {
  4.     echo "Great! thank you for submitting the formn";
  5.     echo "<BR>You are callled <b>" . $_POST['name'] . "</b>Welcomen";
  6.       echo "<BR>Your company/website is called <b>" . $_POST['compname'] . "</b> thank you for using bcs.n";
  7.       echo "<BR>Your email is <b>" . $_POST['email'] . "</b> .n";
  8.         echo "<BR>Your budget is  £<b>" . $_POST['budget'] . "</b> .n";
  9.           echo "<BR>You would like <b>" . $_POST['pages'] . "</b> pages.n";
  10.       if(isset($_POST['flash'])) {
  11.         echo "<BR>You would like flash.n";
  12.     } else {
  13.         echo "<BR>You dont want flash.n";
  14.     }
  15.     if(isset($_POST['frames'])) {
  16.         echo "<BR>You would like Frames.n";
  17.     } else {
  18.         echo "<BR>You dont want frames.n";
  19.     }
  20.    if(isset($_POST['css'])) {
  21.         echo "<BR>You would like css.n";
  22.     } else {
  23.         echo "<BR>You dont want css.n";
  24.     }
  25.     echo "<BR>in further details u typed: " . $_POST['details'] . "n";
  26. } else {
  27.     echo "Hmm...you must have come to this script without clicking the button.n";
  28. }
  29. ?>

Reply With Quote
  #3  
Old January 12th, 2004, 04:36 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

unfortunately it isnt a send mail validator, it just echos the form results. ill give u a send mail validator as soon as i can man,

joe

Reply With Quote
  #4  
Old January 12th, 2004, 05:41 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

i went out searched the net and made a mail form
i have one minor error with it my checkboxes dont work with it heres the code sum1 PLZ help me fix it!
php Code:
Original - php Code
  1.  
  2. <?
  3.  
  4. //Declare the variables
  5. $recipient = "mattbt@efc4.co.uk";
  6. $subject = "Design request";
  7. $message = "$name of $business would like hosting his/her email is $email their budget is $budget they want $pages pages and  $flash $css $frames in details they put $details";
  8.  
  9. //Contents of form
  10. $name=$_POST['name'];
  11. $email=$_POST['email'];
  12. $details=$_POST['details'];
  13. $budget=$_POST['budget'];
  14. $pages=$_POST['pages'];
  15. $flash=$_POST['flash'];
  16. $css=$_POST['css'];
  17. $frames=$_POST['frames'];
  18. //mail() function sends the mail
  19. mail($recipient,$subject,$message,$email);
  20.  
  21. //This line sends to thankyou page when finished
  22. header("Location: thankyou.html");
  23. ?>

i know its probably some kind of newbish mistake but im just getting started at php so please help

Reply With Quote
  #5  
Old January 21st, 2004, 09:22 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,943 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 8 m 21 sec
Reputation Power: 3
RE: form tutorial

can you show us the code for your check boxes.

Reply With Quote
  #6  
Old January 22nd, 2004, 09:50 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

heres the html code
[html]
<head><link rel="stylesheet" href="style.css" type="text/css"> </head>
<center><h1>Webdesign Pricelist</h1>
<h2>An average webpage with reasonable features will cost on average £10 a page submit the
form below to get quote within 48 hours via email</h2></center>
<form method="post" action="mailform2.php">
<table border="0">
<tr><td>Name:</td><td><input type="text" name="name"></td></tr>
<tr><td>Company Name: </td><td><input type="text" name="compname"><a href="help" target="_blank">?</a><br></center></td></tr>
<tr><td>Email:</td><td><input type="text" name="email"><a href="help" target="_blank">?</a><br></center></td>
</tr><tr><td>Budget:</td><center> <td><input type="text" name="budget"><a href="help" target="_blank">?</a><br></center></td></tr>
<tr><td>No Pages:</td> <center><td><input name="pages" type="text"><a href="help" target="_blank">?</a><br></center></td></tr>
<tr><td>Details:</td>
<td><textarea name="details">information on colour etc here</textarea><a href="help" target="_blank">?</a></td></tr>
</table></center>
what features would you like?<br>
<input type="checkbox" name="flash">flash<a href="help" target="_blank">?<br></a>
<input type="checkbox" name="Frames">Frames/frameset<a href="help" target="_blank">?</a><br>
<input type="checkbox" name="css">Stylesheet/css<a href="help" target="_blank">?</a><br>
<center><input type="submit" name="submit" value="submit Request">
[/html]

Reply With Quote
  #7  
Old January 23rd, 2004, 05:03 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: form tutorial

http://codewalkers.com/faq/2/18.html


Reply With Quote
  #8  
Old January 23rd, 2004, 03:42 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

how the heck do i get that to make my checkboxes work

Reply With Quote
  #9  
Old January 23rd, 2004, 07:26 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,943 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 8 m 21 sec
Reputation Power: 3
RE: form tutorial

chill man chill.

By the way if you read it all will become clear

Reply With Quote
  #10  
Old January 24th, 2004, 12:23 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: form tutorial

It tells you exactly how to get them to work.

Reply With Quote
  #11  
Old January 24th, 2004, 04:56 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,943 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 8 m 21 sec
Reputation Power: 3
RE: form tutorial

Read and the truth will unfold.

Reply With Quote
  #12  
Old July 26th, 2005, 04:06 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: form tutorial

Hello ... I need to get a form called " mailform2.php " for a flash dezine im creating and I don't have a clue on what to do.

I have a web site called ... http://www.ibswebdezine.com and in the flash contact page, embedded in the *.swi file I have indicated that the mailform2.php will go here ... http://www.ibswebdezine.com/scripts/mailform2.php and post afterwards.

I do not have such file " mailform2.php " or know where to edit one so the senders information gets' to me in my personal e-mail.

If I can get some help ... the mailform2.php file and what to edit in this file so the e-mail gets to " sales@ibswebdezine.com " and I get the users information successfully I could pay a small fee.

I can dezine the best flash sites in the world but suck at mailform2.php LOL!

Go Fich (

Thanks in advance!

Christopher Moss
Internet Business Services
sales@ibswebdezine.com

Reply With Quote
  #13  
Old July 26th, 2005, 05:48 AM
gauravppatel gauravppatel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: ahemadabad,gujarat,india