Forum: PHP Apr 1st, 2008 |
| Replies: 29 Views: 3,590 It is on site. This forum is designed to allow attachments to posts so that the threads are not cluttered with mile long posts of code (more than one file in this case).
Please leave moderating... |
Forum: PHP Apr 1st, 2008 |
| Replies: 29 Views: 3,590 Attach your files in a zip using the attachment option when posting your next message (the paper clip).
Matti Ressler
Suomedia |
Forum: PHP Mar 30th, 2008 |
| Replies: 29 Views: 3,590 That should actually be:
$query = "SELECT address_code FROM address WHERE userID= '".$myuserID."'";
$result = mysql_query($query);
$row = mysql_fetch_array($result); //or while($row =... |
Forum: PHP Mar 29th, 2008 |
| Replies: 22 Views: 2,785 You must close each form with </form> and make sure that one form is not within another.
Matti Ressler
Suomedia |
Forum: PHP Mar 29th, 2008 |
| Replies: 29 Views: 3,590 You need to connect to mySQL, select the database, make the query, fetch the result with mysql_fetch_array() and close the connection.
Matti Ressler
Suomedia |
Forum: PHP Mar 29th, 2008 |
| Replies: 8 Views: 934 Thats only 17 lines :icon_frown:
How about attaching the actual whole file? - Signupcomplete.php
Matti Ressler
Suomedia |
Forum: PHP Mar 29th, 2008 |
| Replies: 8 Views: 934 This is a PHP error, not a javascript error. Your error message tells EXACTLY where the problem is:
Notice: Undefined index: StudentName in /home/stud/1/0472547/public_html/Signupcomplete.php... |
Forum: PHP Mar 29th, 2008 |
| Replies: 6 Views: 752 I agree. I have absolutely never used it.... another lazy practice even worse than short tags.
Good code has error handling, not error suppression.
Matti Ressler
Suomedia |
Forum: PHP Mar 29th, 2008 |
| Replies: 29 Views: 3,590 |
Forum: PHP Mar 29th, 2008 |
| Replies: 8 Views: 934 The error is in your PHP. You are missing this:
$StudentName = $_POST['StudentName'];
Matti Ressler
Suomedia |
Forum: PHP Mar 29th, 2008 |
| Replies: 29 Views: 3,590 $query = "SELECT address_code FROM address WHERE userID= '".$myuserID."'";
$result = mysql_query($query);
<td><input type="text" name="PickupAddressPostCode" value="<?php echo... |
Forum: PHP Mar 28th, 2008 |
| Replies: 5 Views: 1,357 Well, as I first suggested, declare the variable:
$sentmail = NULL;
Matti Ressler
Suomedia |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 979 Anything that is outside PHP tags is not available to PHP to manipulate.
Its hard to understand exactly what you are trying to do - why do you wish to manipulate the HTML? What is "the... |
Forum: PHP Mar 28th, 2008 |
| Replies: 1 Views: 1,274 Its possible. It requires a GEO-IP database. There are a number of free and commercial ones available.
Matti Ressler
Suomedia |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 979 Although the syntax of your example is incorrect, yes, you can create a function to manipulate the data.
eg.
<?php
function myFunction($input) {
$output = strtolower($input);
... |
Forum: PHP Mar 28th, 2008 |
| Replies: 3 Views: 905 No, its not possible without SSL, since the communication between the user's browser and the web server can be intercepted. SSL is very cheap these days, with most hosts providing a free shared... |
Forum: PHP Mar 27th, 2008 |
| Replies: 5 Views: 1,357 It did not make more errors at all (not possible), in fact its not need. I just ran what you posted (with a minor addition to make it complete) and received an email as expected.
The problem is... |
Forum: PHP Mar 27th, 2008 |
| Replies: 5 Views: 1,357 Somewhere up the top put:
$sentmail = NULL;
Matti Ressler
Suomedia |
Forum: PHP Mar 27th, 2008 |
| Replies: 3 Views: 905 Instead of using $_GET variables use $_POST. Any such transaction should be over a secure SSL connection. I don't see any reason to be passing username and password at all other than a login page. ... |
Forum: PHP Mar 23rd, 2008 |
| Replies: 5 Views: 510 Try this:
if($count==1){
// Register $myusername and redirect to file "login_success.php"
session_start();
$_SESSION['myusername'] = $myusername;
header("location:login_success.php");
} |
Forum: PHP Mar 23rd, 2008 |
| Replies: 5 Views: 510 The code that links to database when you login.
Matti Ressler
Suomedia |
Forum: PHP Mar 23rd, 2008 |
| Replies: 5 Views: 510 You need a database query on your login page to fetch the name you wish to display, then to register it in $_SESSION. Not possible to show you exactly how without seeing your login page code.
... |
Forum: PHP Mar 21st, 2008 |
| Replies: 2 Views: 557 It is said that if you could sit a monkey in front of a typewriter for long enough it would eventually type out the Lord's prayer.....
Matti Ressler
Suomedia |
Forum: PHP Mar 15th, 2008 |
| Replies: 5 Views: 1,042 Try this:
<?php
session_start();
if(isset($_POST['write'])) $push_result = $_SESSION['push_stuff'] . $_POST['write'] . '<br />';
$_SESSION['push_stuff'] = $push_result; |