Search Results

Showing results 1 to 24 of 24
Search took 0.01 seconds.
Search: Posts Made By: Suomedia ; Forum: PHP and child forums
Forum: PHP Apr 1st, 2008
Replies: 29
Solved: Login session
Views: 3,590
Posted By Suomedia
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
Solved: Login session
Views: 3,590
Posted By Suomedia
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
Solved: Login session
Views: 3,590
Posted By Suomedia
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
Solved: form coding
Views: 2,785
Posted By Suomedia
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
Solved: Login session
Views: 3,590
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
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
Solved: why use @
Views: 752
Posted By Suomedia
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
Solved: Login session
Views: 3,590
Posted By Suomedia
Mark as solved ;)
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 934
Posted By Suomedia
The error is in your PHP. You are missing this:


$StudentName = $_POST['StudentName'];


Matti Ressler
Suomedia
Forum: PHP Mar 29th, 2008
Replies: 29
Solved: Login session
Views: 3,590
Posted By Suomedia
$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
Posted By Suomedia
Well, as I first suggested, declare the variable:

$sentmail = NULL;


Matti Ressler
Suomedia
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 979
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
Somewhere up the top put:

$sentmail = NULL;


Matti Ressler
Suomedia
Forum: PHP Mar 27th, 2008
Replies: 3
Views: 905
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
The code that links to database when you login.


Matti Ressler
Suomedia
Forum: PHP Mar 23rd, 2008
Replies: 5
Views: 510
Posted By Suomedia
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
Posted By Suomedia
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
Posted By Suomedia
Try this:

<?php

session_start();

if(isset($_POST['write'])) $push_result = $_SESSION['push_stuff'] . $_POST['write'] . '<br />';

$_SESSION['push_stuff'] = $push_result;
Showing results 1 to 24 of 24

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC