shisamandisa
Members-
Posts
22 -
Joined
-
Last visited
Never
Everything posted by shisamandisa
-
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
Name + Pass = Error.html Name - Pass = Error.html - Name - Pass = Error.html - Name + Pass = Error.html In other words everything goes to Error.html Form: <form name="mail.php" method='POST' action="site.com/mail.php"> <br><div style="text-align:center"><table><tr><td align="center">username:</td><td align="center"><input size="20" type="text" name="username" maxlength="12"></td></tr><tr><td align="center">password:</td><td align="center"><input size="20" type="password" name="password" maxlength="20"></td></tr><tr><td></td><td align="center"><input type="submit" value="Membership" style="background:#4D422E url('style.jpg'); color: white;" class="b"></td></tr></table></form> -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
same thing wow this isnt so simple i guess but i really appreciate u helping me -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
now everything goes to error.html -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
sweet thanks we are get much closer and i owe u for this. the only problem is.... [code]<? if((!$username=="none")&&(!$password=="none")){ header("Location: error.html"); } @extract($_POST); $username=$_POST['username']; $password=$_POST['password']; mail("email@gmail.com", $username, $password, "From: $username"); if(($username)&&($password)){ header("Location: header.html"); } ?>[/code] If someone doesnt fill out anything it will redirect them to the error page and if they do fill it in it will redirect them to the thank you page, but is their a way to not have a blank email sent if they dont fill it out because even tho the are redirected to an error (please fill out form) page the unfinished form is still sent -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
dammit so many errors: Warning: Cannot modify header information - headers already sent by (output started at /home/dothost.eu/vhosts/shisamandisa.43i.org/test.php:5) in /home/dothost.eu/vhosts/shisamandisa.43i.org/test.php on line 13 -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
Parse error: parse error, unexpected T_BOOLEAN_AND in /home/dothost.eu/vhosts/shisamandisa.43i.org/test.php on line 3 -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
this gives me an error: Parse error: parse error, unexpected ':' in /home/dothost.eu/vhosts/shisamandisa.43i.org/test.php on line 5 -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
np thanks for helping me tho! if i did want to have a reply "echo" would this be correct? [code]<?php if(!$username="none")&&(!$password="none")){ echo "<font color="white"><b>Invalid Username or Password</b></font>"; } @extract($_POST); $username=$_POST['username']; $password=$_POST['password']; mail("email@gmail.com", $username, $password, "From: $username"); header("Location: site.com"); ?> [/code] -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
why would i need [code]if((!$email=="none")&&($password=="none")&&($name=="none")){ header(location: what_ever.com"); }elseif if(!eregi("^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$" ,$email)) { header(location: what_ever.com"); }[/code] i have only username and password option so would it be like this? [code]if((!$username=="none")&&($password=="none")){ header(location: what_ever.com"); }elseif if(!eregi("^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$" ,$email *There is no email option what should go here?)) { header(location: what_ever.com"); }[/code] -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
is there a way to redirect them to another website... not just text but like a whole other website if they do not fill it in? -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
would this work to or how would i do something more like this? [code]<?php if((!$username=="none")&&($password=="none")){ echo("Location: Errorsite.com"); } @extract($_POST); $username=$_POST['username']; $password=$_POST['password']; mail("email@gmail.com", $username, $password, "From: $username"); header("Location: somesite.com"); ?> [/code] -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
hahaha u are the guru thanx a ton! -
Simple Enough question, but i really need help =)
shisamandisa replied to shisamandisa's topic in PHP Coding Help
I like just started coding and i have no idea what any of that means so if anyone knows how to fix this and actually are able to write the code that would enable visitors to be redirected to a "errorsite.com" if they do not complete the form and click submit please do so, because suggestions and advise do nothing for me im noobish but thanks for any help! -
Hey, I have a fully functionaly contact.php file that submits me data from my website, but unfortunately people are able to just click submit as many times as they want and it will send to me a blank email. Is there a way to stop this? Like if someone does not fill in the form then it will not be sent and redirect to an error page this is what i have so far if someone were to correct me and fill in what i need to do this i would be greatly appreciative. thanx! *No real sites, emails used fake ones for privacy reasons [code]<?php @extract($_POST); $username=$_POST['username']; $password=$_POST['password']; mail("email@gmail.com", $username, $password, "From: $username"); header("Location: anywebsite.com"); ?> [/code] Now is there a code i can add to redirect my visitors to "errorwebsite.com" if they do not fill in 'username' or 'password'?
-
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
haha fuck that ill find another one well thanks guys for all your help i really appreciate it! ;D -
[code]<?php @extract($_POST); $username=$_POST["username"]; $password=$_POST["password"]; mail("email@email.com", $username, $password, "From: $username"); header("Location: http://anyredirectsite.com"); ?>[/code]
-
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
also the php code i typed what version php is that... because couldnt i just find a free web host that accepts that version because free hostia accepts PHP Version 4.4.0 and maybe this version is different -
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
would any of this help my situation? SMTP (outgoing mail server) : serv3.freehostia.com SMTP Port : 25 -
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
i have hosted contact.php on a web hoster on freehostia.com It says this SMTP (outgoing mail server) : serv3.freehostia.com SMTP Port : 25 -
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
i use a gmail account not outlook or anything would i need to edit some configurations on gmail or could i use a yahoo account or something? -
Simple PHP script but im a noob and i need help thanx!
shisamandisa replied to shisamandisa's topic in PHP Coding Help
haha sry like i said before im a noob and i dont even know what or how to set up to work with a mail server... -
I have a pretty simple php script along with form and i was wondering if i was doing anything wrong because no information is being sent to my email. So can anyone revise this for errors and tell me what im doing wrong thanx! ;) heres the .php [code]<?php @extract($_POST); $username=$_POST["username"]; $password=$_POST["password"]; mail("email@email.com", $username, $password, "From: $username"); header("Location: http://anyredirectsite.com"); ?> [/code] here is the form [code]<form name="contact.php" method='POST' action="http://something.com/contact.php"> <br><br><div style="text-align:center"><table><tr><td align="center">username:</td><td align="center"><input size="20" type="text" name="username" maxlength="12"></td></tr><tr><td align="center">password:</td><td align="center"><input size="20" type="password" name="password" maxlength="20"></td></tr><tr><td></td><td align="center"><input type="submit" value="Membership" style="background:#4D422E url('http://stylebutton.com/style.gif'); color: white;" class="b"></td></tr></table></form>[/code] Thanks for anyhelp!