Forum: PHP Mar 18th, 2008 |
| Replies: 4 Views: 973 oh..thanks, i not even notice about that also. So the cookies had been set with $username and timeout 1 hour.....Then from this page, i click to another page, using the same syntax for set cookies ()... |
Forum: PHP Mar 18th, 2008 |
| Replies: 4 Views: 973 hey..is you..hihi...
well, i setcookies() right after the user had logged in and the variables pass to the page shown below, i put it at the top right after <?php.....
<?php... |
Forum: PHP Mar 18th, 2008 |
| Replies: 4 Views: 973 just wanna ask..if session cant be use, i try setcookies() to get the variable pass through the pages, however i get this error message:
Warning: Cannot modify header information - headers already... |
Forum: PHP Mar 18th, 2008 |
| Replies: 1 Views: 1,736 hi...i am doing form for bill redemption, and juz wanna ask is there any function in php used to check for expired date? like current month is march, if user enter due month to be january, then it... |
Forum: PHP Mar 3rd, 2008 |
| Replies: 19 Views: 4,238 yaya..i already modified the path that store the files. And i do have the enctype at my HTML
<form enctype="multipart/form-data" action="upload.php" method="POST">
<input type="hidden"... |
Forum: PHP Mar 3rd, 2008 |
| Replies: 19 Views: 4,238 well, after settled that things, now i came across for the upload things. My upload.php as shown below:
<?php
$uploaddir = 'C:\Documents and Settings\evan\Desktop\ALL pHP\';
$uploadfile =... |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 got it...yeah!!! thanks nav33n and silviuks... |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 well, the variables are assigned within the form:
<form method="post" action="welcome.php" >
<p><label for="name">Username:</label> <input type="text" name="name"></p>
<p><label... |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 well, the prob still exist..i try to upload my welcome.php for references....
my index.html codes shown below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?php... |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 well, i juz need to pass variables and show it in another page...
before tht i ady success pass the variable to the 2nd page..however it cant pass to the 3rd page..do u hav simpler code for it... |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 so do you mean like this?
<?php
session_start();
$username = $_SESSION['name'];
$password = $_SESSION['password'];
$status = $_SESSION['status'];
?> |
Forum: PHP Mar 2nd, 2008 |
| Replies: 19 Views: 4,238 ya..i do have session_start () in both pages:
in the index page:
<?php
session_start();
$_SESSION['name'];
$_SESSION['password'];
$_SESSION['status'];
?>
<html> |
Forum: PHP Mar 1st, 2008 |
| Replies: 19 Views: 4,238 i declared like this:
<?php
session_start();
$_SESSION['name'];
$_SESSION['password'];
$_SESSION['status'];
?>
and calling i8t out using this:
<h2>You are currently logged in as <?php echo ... |
Forum: PHP Mar 1st, 2008 |
| Replies: 19 Views: 4,238 i'd created a login page, where user need to enter their username and password here, stored in
$username = $_POST["name"];
$password = $_POST["password"];
then after submit button being... |
Forum: PHP Mar 1st, 2008 |
| Replies: 9 Views: 498 by the way, i created a login page, the submit button action is linked to welcome.php which shows the username on it. In this welcome.php also i created a link to the page where the codes shown... |
Forum: PHP Mar 1st, 2008 |
| Replies: 9 Views: 498 thank you so much nav33n .... much appreciate what u'd trying to help... thanks again...
my prob solved.. |
Forum: PHP Mar 1st, 2008 |
| Replies: 9 Views: 498 err..however the submit button seems not working..it doesnt show what the user had enter..any syntax error over there? |
Forum: PHP Mar 1st, 2008 |
| Replies: 9 Views: 498 thanks for your help....it works!!! |
Forum: PHP Mar 1st, 2008 |
| Replies: 9 Views: 498 i am new to PHP. instead i learned the basic from w3schools and tizag. i'd created a registration form-like page using php tags, however when i uploaded to a php-based web hosting, i cant see... |