Jump to content

koritsaki

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

koritsaki's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello ladies and gentlemen. I need some advice here. I use advanced smtp server to send mail with php mail function. The thing is that i have done it working on my pc but i cannot do it on another. Can this be a problem of the GO PEAR? I have put the Pear mail package in php files but again it doesn't work. What else can i do?
  2. Listen I had a similar problem. First of all put at your select statement quotes when you say that something equals a variable, like this: [code=php:0] $sql = "select * from uploadid where pcfid='$lookupid',original,pcffull,ip,size"; [/code] Then maybe you must specify what is ($lookupid,original,pcffull,ip,size) inside your code, before the query. Check if it is possible the record pcfid to hold so many values. If it is then echo it to see what it contains. Then put [code=php:0] $rs=mysql_query($sql,$conn); $row = mysql_fetch_assoc($rs); [/code] Good Luck!
  3. Thank you so much Orio for your reply. The thing is that the query work fine. What i need to do is to fix the if statement so if (isset($_Post ['Submit'])) { // i suppose this is what i have to write in order when the submit button of my form is pressed. My question is how to load the same page there before the form's action redirects me to another page. You see I have a form later in the page that looks like this: <form name="form1" method="post" action="/loganswer.php"> <p><font color="ff9900"><strong>Username:</strong></font></p>
  4. Hello guys and girls! I need some help because I'm new and not so good on programming. The thing is that I have a php login page with a form in it. The form's action is on another page in case username and password are correct. This works fine but I must also have a fail page in case username and password are incorrect or an alert message on submit that will not allow user to leave the home page before entering the correct username and password. This is how the php code looks like: <?php $ena= $_POST[textfield]; //username from home page $dyo = $_POST[textfield2]; //password >> >> $conn = mysql_connect("localhost", "root", "12365875") or die(mysql_error()); mysql_select_db("e-kiosk",$conn) or die(mysql_error()); $sql = "SELECT username,password FROM customers"; $result = mysql_query($sql,$conn) or die(mysql_error()); $user = $row['username']; //username from database $pass = $row['password']; //password >> >> if ($ena!==$user and $dyo!==$pass) { } ?> Is there something I can do on submit of the form? I have tried to compine php and javascript there but it doesn't work. What else can i do? This is a small piece of my form: <form name="form1" method="post" action="/loganswer.php"> <p><font color="ff9900"><strong>Username:</strong></font></p>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.