Need help with a form....
01-16-05, 05:14 PM
Newbie Coder
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Need help with a form....
Okay the problem is when I test it out it dosen't send an email here is the link to the form:
Form
Heres the code where the problem is:
PHP Code:
<? //initilize PHP
if( $Submit ) //If Submit is hit
{
mail ( "dazzlyworks@gmail.com" , " $name " , " $email " , " $button " , " $website name" , " $siteurl " , "linkimageurl" , "linkimagepage" , " $subject " , " $comments " );
}
$URL = "http://www.dazzlyworks.tk" ;
header ( "Location: $URL " );
?>
Thank You for Contacting DazzlyWorks, we will get back to you shortly...
<html>
<head></head>
<body>
</body>
It says I can only have 5 parameters, How do I have 10?
Also in IE its all messed up, but not in firefox how do I fix this?
01-16-05, 05:38 PM
Wannabe Coder
Join Date: Apr 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not sure why you have 10 parimiters.
This is how it should be:
This should work because I copied and pasted little bits of my email spammer program that does work. Also The mail() function works differently with servers. Sometimes you enter in the from field, for example "me" and it comes out "me@myhost.com" rather than just "me". If it does come out as "me@myhost.com", you better be sure you got that to email address right, otherwise it bounces back (Imagine that with my email spammer program - it can send repeat emails...)
Hope that helps.
01-16-05, 05:41 PM
Newbie Coder
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, but how do I add the other parameters, I need 10 as you can see in my form...
and where do I put my email address sorry im not much of a programer.
01-16-05, 06:01 PM
Wannabe Coder
Join Date: Apr 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not sure you need all those. If you want variables to be in the message:
You should be able to continue from there...
01-16-05, 06:11 PM
Newbie Coder
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks but where do I add my email address?
01-16-05, 06:23 PM
Wannabe Coder
Join Date: Apr 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
For the email to send to or from something?
You'll need another page: submit.php
Also name the script I gave you before as :submit2.php
01-16-05, 06:26 PM
Newbie Coder
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
okay im confused so have 3 scripts in the folder? cuz right now i have the index and the submit one
01-16-05, 06:39 PM
Wannabe Coder
Join Date: Apr 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Copy and paste these scripts to a (html/php) editor:
submit2.php
submit.php
You may have other pages on your website, but theses are the ones that do the process. To test them out, view the "submit.php" page (when it is uploaded).
I think that about sums it up. I you don't understand, ask your host about server uploading or whatever your server problems are (unless it is a php error).
01-16-05, 06:51 PM
Newbie Coder
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off