HNX
-
Posts
102 -
Joined
-
Last visited
Never
Posts posted by HNX
-
-
ok it says :
Your message was sent to someone@hotmail.com successfuly
i dont want the people to see my email :s
oh and i delete this part
// change "sucess.php" to the page you want them to be redirected to; if email is submitted successfully. -
ok i replaced send_mail by this but at one point ur sayin
...i dont get it Lol (ur sayin that in the script)"sucess.php" to the page -
huh will that do the work???
btw my question was as follows
ok first let me undertand how to make the page "success.php" so what i need to do is copy my contact page and remove the form and write instead " your msg was sent" right?i asked i have to make the file but then ur tellin me to replace somethin?!!
im puzzled!!:|
-
@phpquestioner thanks Lol
@sensei yo dude so can u tell me whats the answer to my quesion?
-
ok first let me undertand how to make the page "success.php" so what i need to do is copy my contact page and remove the form and write instead " your msg was sent" right?
@phpquestioner : euh i dont know how to do that... do u have any suggestions for where to learn php
-
well did u see the page i sent?? i mean the link ???
thats exactly what i want so all i have to do is make the script go to the contact us page/??/ and the script will tell the dude itself that ur message was sent on the same page right??
check the site i gave u (http://www.elico.ca/main.cfm?p=40&l=fr)
-
<?php if(isset($_POST['Submit'])){ $to = "YOUR HOTMAIL ADDRESS"; $subject = $_POST['subject']; $message = $_POST['detail']; $from = $_POST['name']; $headers = "From: $from"; if(mail($to,$subject,$message,$headers)) { //echo "Thank you for your interest, your e-mail was sent."; header("Location: success.php"); // change "sucess.php" to the page you want them to be redirected to; if email is submitted successfully. exit; } } print '<form action="" method=post name=form1 id=form1>'; print '<table width="100%" border="0" cellspacing="1" cellpadding="3">'; print '<tr>'; print '<td width="16%"><span class="style108">Subject</span></td>'; print '<td width="2%"><span class="style104">:</span></td>'; print '<td width="82%"><input name="subject" type="text" id="subject" size="50" /></td>'; print '</tr>'; print '<tr>'; print '<td><span class="style108">Message</span></td>'; print '<td><span class="style104">:</span></td>'; print '<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>'; print '</tr>'; print '<tr>'; print '<td><span class="style108">Name</span></td>'; print '<td><span class="style104">:</span></td>'; print '<td><input name="name" type="text" id="name" size="50" /></td>'; print '</tr>'; print '<tr>'; print '<td><span class="style108">Email</span></td>'; print '<td><span class="style104">:</span></td>'; print '<td><input name="customer_mail" type="text" id="customer_mail" size="50" /></td>'; print '</tr>'; print '<tr>'; print '<td> </td>'; print '<td> </td>'; print '<td><input type="submit" name="Submit" value="Submit" />'; print '<input type="reset" name="Submit2" value="Reset" /></td>'; print '</tr>'; print '</table>'; print '</form>'; ?>
does it have to be a php file?? and when u say "change "sucess.php" to the page you want them to be redirected to; if email is submitted successfully." thats what i should write?? so does it mean i can remove this from the code afterwards???
-
WOW!! joey we're almost there ok now when i submit using the new file everything works fine and this time the script brings me back to a blank page but this time instead i can see the form again....
all there is left to do is the repair the destination of the script, i mean not bringing me to a blank page
look at the site i found, i saw their contact page and thats the kind i need:s
http://www.elico.ca/main.cfm?p=40&l=fr
thanks man,
HNX
-
yes i do ok wait sensei gave me a simple script and it was working fine but the only problemi had was that when i submited the information it went to a blank page tellin me that ur msg was received. instead i want it to load on the same page and then i tried replacing the files and everything he gave and told him what it tells,
and now i gave him my contact us form and my send_mail.php file so i thought he would understand more this way
and yes php is enabled
thanks,
HNX
-
it says "Form was not found"
didnt u take a look at the megaupload link i gave??
-
ok im trying it now and i hope ur reply will be ast Lol like the first time Loll
thanks,
HNX
-
joey!! u know i could use some help here.....
and did u learn php so that i could also learn it from there:D
-
euh wait i took the previous code that u gave me and saved it as send_mail.php and replaced it with the other. the other one when i clicked submit it brang me to a blank page sayin the msg was received and the recent code that u gave does the EXACT same thing however the code is longer
so thats why i gave u the my send mail file AND my contact us file so that u can understand what i need and make the code
but anyway here is the link again
http://www.megaupload.com/?d=62MOL06W
Regards,
HNX
and dude cant u give me ur email?? yes or no? Loll
-
look what someone tells me to do on another forum
Submits the info to itself... PHP Code: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Check if form has been submitted: PHP Code: <?php if(isset($_POST['form'])){ process stuff here... echo "Thank you for your feedback!"; }else{ display form } ?>
-
yo joey man this code does exactly the same thing as the other code...:s did u receive the link to my files for which i need the code?? maybe with them u could understand what i need... Lol
i wish u can fix the porblem Lol
Thanks though,
HNX
-
aight ill try it right away
-
wow SENSEI!!! Lol ok so i delete the send mail file and replace it with this??? then i let the form the way it was before???
-
euh what am i supposed to do with this??
Please help,
HNX
-
ok jacob, phpsensei and all the dudes that tried helping me here if my contact us form and php codings please make it work and post the link here afterwards thank YOU VERY MUCH
Regards,
HNX
-
shit joey i hope ur gonna reply tomorrow Lol
-
anyone who can support me until the end, thats all i need. I dont just want my request to end up at the bottom of the page...
Regards,
HNX
-
Not Found
The requested URL /< was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.39 Server at mysite.net Port 80
same problem...:s
-
wait let me try
-
when i submit the form
[SOLVED] contact us form problems
in PHP Coding Help
Posted
blank page with this message on top:
Thank you for your interest, your e-mail was sent.