Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-31-2005, 02:26 PM Email Form
cs49's Avatar
Skilled Talker

Posts: 98
Trades: 0
Hello *waves*

I woud like to create a form with the following fields;

Username:
Password:
Password Again:
Email Address:
Domain Name:

This is for new signups, ive made a form before but just a contact form.

Thanks in Advance

Carl
cs49 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-31-2005, 02:54 PM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
What Form in PHP or HTML ?? you just you will like to create a Form with following field,, were u having problem Creating it or what ??

And here again u said...

This is for new signups, ive made a form before but just a contact form.

We don't really Understand What u need help with.
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.

Please login or register to view this content. Registration is FREE
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-31-2005, 03:01 PM
cs49's Avatar
Skilled Talker

Posts: 98
Trades: 0
Sorry

I would to create a form with all the above fields

And then the form to be emailed to me.

HTML would be good.

Sorry for not being specific
cs49 is offline
Reply With Quote
View Public Profile
 
Old 05-31-2005, 03:26 PM Form
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
[HTML]
<form method ="post" action ="mail.php">
Username :<input type ="text" name ="Username" Value ="Username">br
Password :<input type ="text" name ="Password" Value ="Password">br
Retype Password :<input type ="text" name ="Retype Password" Value ="Retype Passowrd">br
Email Address :<input type ="text" name ="Email Address" Value ="Email Address ">br
Domain name :<input type ="text" name ="Domain name " Value ="Domain name">br
</form>
</html>
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.

Please login or register to view this content. Registration is FREE

Last edited by Uche; 05-31-2005 at 03:36 PM..
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-31-2005, 03:33 PM
cs49's Avatar
Skilled Talker

Posts: 98
Trades: 0
Thanks

How would i get the form to email to an address?
cs49 is offline
Reply With Quote
View Public Profile
 
Old 05-31-2005, 03:35 PM
cs49's Avatar
Skilled Talker

Posts: 98
Trades: 0
I would need a submit button so the data emals to me
cs49 is offline
Reply With Quote
View Public Profile
 
Old 05-31-2005, 04:04 PM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
Sorry does codes are Wrong
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.

Please login or register to view this content. Registration is FREE
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-31-2005, 04:11 PM Take This
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
HTML Code:
<form action="form.php" method='post' name="contact" id="contact">
<form action="form.php" method='post' name="contact" id="contact">
<input type='text' name='email' value='you@supfoo.com' 

onFocus="if(this.value=='you@supfoo.com') { this.value=''; }"size=50 

class='textbox'>
<br>
<input type='text' name='subject' value='whats up' 

onFocus="if(this.value=='The Subject') { this.value=''; }" size=50 

class='textbox'>
<br>
<textarea name='comments' rows=5 cols=50 class='textbox'></TEXTAREA>
<br>
<input type='submit' name='submit' value='submit' class='textbox'>
</form>


You can Edit those page... sorry i'm just tight busy and orl dat and if you can't edit it let me know and do it once and 4 all


This is the Code that will send out mail and you will get it just read through those code
PHP Code:
<?php

//Declare the variables
$recipient "you@domain.com";
$subject "whats up";
$message "$email sub $subject words $comments";
$subject=$_POST['subject'];

//Contents of form
$name=$_POST['email'];
$email=$_POST['subject'];
$comments=$_POST['comments'];

//mail() function sends the mail
mail($recipient,$subject,$message,$email); 

//This line sends to thankyou page when finished
header("Location: thanks.html"); 
?>
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.

Please login or register to view this content. Registration is FREE
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-31-2005, 06:49 PM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
you may wanna chuck some control onto that mailing script so it can't run unless it's being submitted to by the form e.g.

if(isset($_POST['Submit'])){

//mail script

}
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Reply     « Reply to Email Form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29416 seconds with 12 queries