Jump to content

Heba

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Heba's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Heba

    Spreadsheet

    Ok i am using PHP Can you help me and guide me through the steps please?
  2. Hi PHP was working fine with me until i tried it today i tried opening it via localhost and this is what i got [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. For more information as to why this behaviour exists, see the manual page for CGI security. For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.[!--colorc--][/span][!--/colorc--] I tried reading the manual but couldnt figure it out! HELP!
  3. Hi 2003 - Can't connect to MySQL server on 'localhost' (10061) ^^ when i connect to mySql i get this can someone help
  4. Hi Is it possible that when the user clicks on the button an excel spreadsheet gets generated with the details in the form?
  5. Heba

    Button click

    oh i didnt know that Thank you
  6. Hi If i want the user to go to another page when he clicks on the button what should i do will it be [code]onclick =  " "[/code] [code]<td class="style58"><div align="left" class="style62">Sender Name:                 <select name="select" size="0" class="style49">                   <option value="1">Gerardo</option>                   <option value="2">Waldemar</option>                 </select>                 <input name="Submit" type="submit" class="style49" value="New Sender">[/code]
  7. Hi I have a question .. Lets say the user logs in with the name = Heba and goes to the menu page How can i welcome the user with his name like Welcome Heba ! I did this [code]Welcome <? echo "$name";?>[/code] But it gives me this error Welcome [b]Notice: Undefined variable: name in[/b]
  8. SOLVED :D Thank you all
  9. ok when i did that it worked but it gives me an empty window with no messages!
  10. [!--fonto:Century Gothic--][span style=\"font-family:Century Gothic\"][!--/fonto--]Hi there I've learnt that [b]header('Location: URL'');[/b] is like [b]Response.redirect [/b] in ASP So i tried to do this code but it doesnt work ... [code] <?php if(isset($_POST['submit']) && $_POST['submit'] == 'Submit') //if form has been submitted {     $url = "http://localhost/Warehouse_Services_Operations_System/main.php";     $denied = "";     $name = $_POST['name'];     $pass = $_POST['pass'];     if ($name == "Heba" &&  $pass == "123")     {         header('Location: '.$url.''); /* Redirect browser */         exit;                     }     else {         $denied = "Sorry. You are not authorized to access this page<br>Go <a href='index.php' onclick='history.go(-1);return false'> Back </a>";     } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>SYS</title> . . . . ... . . . . . . <body> <?php if(!empty($denied)) { echo $denied; } ?> . . ... . . . . . . . </body> </html> [/code] Can someone please enlighten me! [!--fontc--][/span][!--/fontc--]
×
×
  • 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.