Click here to Skip to main content
15,881,092 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: pop up windows in .asp pages Pin
Hesham Amin1-Apr-07 6:43
Hesham Amin1-Apr-07 6:43 
QuestionKeeping the values of radio button during paging [modified] Pin
enggars31-Mar-07 7:45
enggars31-Mar-07 7:45 
AnswerRe: Keeping the values of radio button during paging Pin
eggsovereasy2-Apr-07 7:47
eggsovereasy2-Apr-07 7:47 
QuestionHow to force a page to post back from another page? Pin
r_jaz31-Mar-07 2:48
r_jaz31-Mar-07 2:48 
AnswerRe: How to force a page to post back from another page? Pin
Guffa31-Mar-07 4:37
Guffa31-Mar-07 4:37 
Questionphp page being loaded twice Pin
john3431-Mar-07 2:19
john3431-Mar-07 2:19 
AnswerRe: php page being loaded twice Pin
Bradml31-Mar-07 2:35
Bradml31-Mar-07 2:35 
AnswerRe: php page being loaded twice Pin
Bradml31-Mar-07 4:18
Bradml31-Mar-07 4:18 
I reviewed the script you gave me... This is something I threw together:

<?php
//Nothing but the PHP tags can be above this point, not even blank space. ^

if ($_POST['Submit'] == "Submit") {
    
    //If the forms submit button was clicked.
    
    $userid=mysql_real_escape_string($userid);
    $password=mysql_real_escape_string($password);

    if (!$rec = mysql_query("SELECT * FROM `user` WHERE UserName='$userid' AND Password = '$password'")) {echo "Database Maintenance in progress."; exit();}

    if (mysql_num_rows($res) == 1) {
        //Correct Username and password
        header( "Location: http://marhay1.100webspace.net/Login/preupload.php" );
        exit();
    }else{
        //Incorrect username and password.
        echo "Incorrect Username or Password.";
    }
    
    
}
?>

<!-- Form data etc -->
Make sure that absolutely nothing is before the first <?php tag.




Brad
Australian

- peterchen on "Who has the worst keyboard"

Keyboard? Ha! I throw magnets over the RAM chips!

GeneralRe: php page being loaded twice Pin
john3431-Mar-07 8:13
john3431-Mar-07 8:13 
GeneralRe: php page being loaded twice Pin
Bradml31-Mar-07 18:31
Bradml31-Mar-07 18:31 
GeneralRe: php page being loaded twice Pin
john341-Apr-07 3:44
john341-Apr-07 3:44 
GeneralRe: php page being loaded twice Pin
Bradml1-Apr-07 3:56
Bradml1-Apr-07 3:56 
Questionbinary data asp Pin
Nilesh Hapse30-Mar-07 23:53
Nilesh Hapse30-Mar-07 23:53 
AnswerRe: binary data asp Pin
Dmitry Khudorozhkov31-Mar-07 2:51
Dmitry Khudorozhkov31-Mar-07 2:51 
Questionvoice chat Pin
tempsh30-Mar-07 23:40
tempsh30-Mar-07 23:40 
AnswerRe: voice chat Pin
Dmitry Khudorozhkov31-Mar-07 2:45
Dmitry Khudorozhkov31-Mar-07 2:45 
QuestionHow to fix, "next, previous," to bottom of browser Pin
starri0030-Mar-07 21:40
starri0030-Mar-07 21:40 
QuestionMasterpage-Contentpage Data Sharing Pin
RickyD230-Mar-07 10:26
RickyD230-Mar-07 10:26 
AnswerRe: Masterpage-Contentpage Data Sharing Pin
Bradml30-Mar-07 13:15
Bradml30-Mar-07 13:15 
GeneralRe: Masterpage-Contentpage Data Sharing Pin
RickyD22-Apr-07 2:30
RickyD22-Apr-07 2:30 
AnswerRe: Masterpage-Contentpage Data Sharing Pin
DavidNohejl1-Apr-07 21:54
DavidNohejl1-Apr-07 21:54 
GeneralRe: Masterpage-Contentpage Data Sharing Pin
RickyD22-Apr-07 2:37
RickyD22-Apr-07 2:37 
QuestionJavascript obfuscator. Pin
sergeyv200230-Mar-07 8:28
sergeyv200230-Mar-07 8:28 
AnswerRe: Javascript obfuscator. Pin
Dmitry Khudorozhkov31-Mar-07 2:47
Dmitry Khudorozhkov31-Mar-07 2:47 
AnswerRe: Javascript obfuscator. Pin
Hesham Amin1-Apr-07 6:46
Hesham Amin1-Apr-07 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.