Jump to content

oceans

Members
  • Posts

    514
  • Joined

  • Last visited

    Never

Everything posted by oceans

  1. Thanks for you help, I get more errors " PHP Notice: Undefined variable: input in C:\Inetpub\wwwroot\MyPHP\Member\0101LogIn.php on line 17 PHP Notice: Undefined variable: input in C:\Inetpub\wwwroot\MyPHP\Member\0101LogIn.php on line 17 PHP Notice: Undefined variable: Input in C:\Inetpub\wwwroot\MyPHP\Member\0101LogIn.php on line 28 PHP Notice: Undefined variable: Input in C:\Inetpub\wwwroot\MyPHP\Member\0101LogIn.php on line 41 " I understand what is happeneing, when the page first runs from top to bottom, it sees my assignment before the declaration of the variable.
  2. Please guide on how to use Sessions. (I noted it is different from ASP) I came to know we should always declare Session before <HTML> Like this <?php session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; ?> </body> </html> What if we need to store and transfer data while we are working within a form?
  3. I forgot your suggextion works, can you please help me on request "Re: User Input Validation " also, I do it with a breeze in ASP, but PHP it appears tough.
  4. Thanks in ASP we use: Response.Redirect("03-Maintain.asp")
  5. Can you give me a real life example, I can't figure out, I just moved in from ASP
  6. power thanks echo works, can you help me with the first run error.
  7. Thanks, the error on the first run of the page is "PHP Notice: Undefined index: Txt1 in C:\Inetpub\wwwroot\MyPHP\Member\LogIn.php on line 13 PHP Notice: Undefined index: Txt2 in C:\Inetpub\wwwroot\MyPHP\Member\LogIn.php on line 13 " but when filled with the values the error clears. you will uinderstnad if you stick my code to you dream weaver and run once
  8. Deer People, Please guide me in php command to redirect from current *.php to another *.php page, thanks.
  9. Dear People, Please help me with the following; I am intending to make a form on a page, on pushing submit the forms gets posted onto itself so that it checks for empty fields and prompts user to get all fields filled, BUT the filled value should stay, I did this easily on ASP, but could not figure out in PHP. My code is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?PHP //Transfer Data from Screen to Memory for ($i=1; $i<=2; $i++) { $Input[$i]=$_REQUEST["Txt".$i]; echo $Input[$i]; } ?> <form id="form1" name="form1" method="post" action="LogIn.php"> <table width="499" border="0" cellpadding="5" cellspacing="0"> <tr> <td width="131">Email Address </td> <td width="348"><input name="Txt1" type="text" id="Txt1" value="<?PHP $Input[1] ?>" size="30" maxlength="30"/></td> </tr> <tr> <td>Password</td> <td><input name="Txt2" type="password" id="Txt2" value="<?PHP $Input[2] ?>" size="30" maxlength="30"/></td> </tr> <tr> <td> </td> <td> <?PHP for ($i=1; $i<=2; $i++) { if ($Input[$i]=="") { echo"All Fields Should be Filled !"; break; } else { /*$con = mysql_connect("localhost","peter","abc123"); if ($con) { } else { die('Could not connect: ' . mysql_error()); } */ } } ?> </td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Submit" /></td> </tr> </table> </form> </body> </html>
  10. Hi, Can you recomand me a provider who gives free hosting facility for data base hosting, yahoo gives free hosting only for html type right.
  11. Hi BubbleGum, Presently I use IIS, ODBC, ASP. Let me be honest, I am confused. Are you saying I need Apache, MySQL 4, PHP 5. Only then I will be able to get things moving. I am willing to accept migration, please advice. Firstly I will run things on my own pc, once settled then I will hire server space. For a start, is there a free server space which will allow SQL services, I will need it for testing purposes, else I will be wasting money while I am trying things. Thanks.
  12. Thanks for your advice, Please guide me or refer me to the tutorial. I need help on the application setup, coding should not be a problem, Thanks. I think this is a common problem, I noted another posting with the same problem. 1 hr after my posting. For a start I will use IIS, I will experiment with apache later, thanks.
  13. Sorry I missed this, version of PHP is PHP 5.2.1; MySQL is 5.0.37. I think I am missing somthing in MySQL setup, too many questions asked, i just say yes to all default values "I Think".
  14. Dear People, I need help, first of all my introduction: I have done a number of simple VB (6.0) programs, including “socks”. Lately I got interested in HTML “based” databases. Naturally I took ASP as my language, and MS Access as my database. While working with my interest (learning while programming actually), I meet trouble. I do not know how to upload files from the client browsers, later I was advised PHP would help me solve this problem easily. Thus, I tried to pick up PHP, well OK, I think I can migrate with a little bit of sweat. At this point, I also call a local “server space provider”, he mentioned I need to do MySQL else he will charge me MORE money (is it normal?), OK I again got to migrate from MS Access, I am willing. I downloaded PHP and MySQL and have installed them into my PC, but the problem is, I can’t create a table to get to work. In Access, I will simply create the table using office and use DSN, to get connected and work. I need two helps (1) Are my migrations wise knowing my situation, (2) Please guide me on any settings I have to do the MySQL application or Dreamweaver application, and guide me to create a table (I understand SQL, problem, I can’t inch forward that is all). I have my IIS turned on, and I do not have Apache. I have spent 7 hours on this MySQL thing getting no where! Thanks.
×
×
  • 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.