Search Results

Showing results 1 to 34 of 34
Search took 0.01 seconds.
Search: Posts Made By: Suomedia
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008
Replies: 18
Views: 2,921
Posted By Suomedia
You would do far better not to rely on javascript for this at all. Instead you should parse the post with PHP and from that display a confirmation for the delete if delete was selected. That is...
Forum: PHP Apr 1st, 2008
Replies: 29
Solved: Login session
Views: 3,570
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,570
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: JavaScript / DHTML / AJAX Mar 31st, 2008
Replies: 1
Views: 1,127
Posted By Suomedia
Try this:

<!--[if !IE]> -->
<object type="application/x-shockwave-flash"
data="http://www.zeriislam.com/menu.swf" width="923" height="90">
<!-- <![endif]-->
<!--[if IE]>
<object...
Forum: PHP Mar 30th, 2008
Replies: 29
Solved: Login session
Views: 3,570
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,777
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,570
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: 926
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: 926
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: 751
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,570
Posted By Suomedia
Mark as solved ;)
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 926
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,570
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,339
Posted By Suomedia
Well, as I first suggested, declare the variable:

$sentmail = NULL;


Matti Ressler
Suomedia
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 977
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,257
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: 977
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: JavaScript / DHTML / AJAX Mar 28th, 2008
Replies: 7
Views: 2,910
Posted By Suomedia
Usually the simplest thing to do is to click on the yellow ! icon in the bottom left of the browser window in IE. This will tell you the error. Better still, use Firefox and use the error console....
Forum: PHP Mar 28th, 2008
Replies: 3
Views: 891
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,339
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,339
Posted By Suomedia
Somewhere up the top put:

$sentmail = NULL;


Matti Ressler
Suomedia
Forum: MySQL Mar 27th, 2008
Replies: 7
Views: 1,151
Posted By Suomedia
If your script works but takes forever, you probably need to add indexes to your tables.

Matti Ressler
Suomedia
Forum: PHP Mar 27th, 2008
Replies: 3
Views: 891
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: HTML and CSS Mar 22nd, 2008
Replies: 5
Views: 1,482
Posted By Suomedia
You can read about it here: http://www.w3schools.com/css/pr_class_clear.asp


Matti Ressler
Suomedia
Forum: HTML and CSS Mar 22nd, 2008
Replies: 4
Views: 1,260
Posted By Suomedia
Looks rather nasty (no offense)

I normally do this kind of layout like this:


<div style="position:relative; width:100%">
<div style="width:33%; float:left; text-align:center;"><img...
Forum: HTML and CSS Mar 22nd, 2008
Replies: 5
Views: 1,482
Posted By Suomedia
Sounds like you have an open <div> tag, most likely in your right column..... looking.... nope, tag counts match.

Try this in your footer class: clear:both;

Try also fixing these errors: ...
Forum: MySQL Mar 22nd, 2008
Replies: 3
Views: 653
Posted By Suomedia
A common way to do it is this:

$data = mysql_query('SELECT * FROM `bus_basic` ORDER BY `name` ASC ')
or die(mysql_error());

Print "<table cellpadding=3>";
$count = 0;
while($info =...
Forum: PHP Mar 21st, 2008
Replies: 2
Views: 556
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: Existing Scripts Mar 18th, 2008
Replies: 16
Views: 9,839
Posted By Suomedia
The error indicates that the database user/pass you are using are invalid - check these.


Matti Ressler
Suomedia
Forum: Existing Scripts Mar 18th, 2008
Replies: 16
Views: 9,839
Posted By Suomedia
I really think that the people here offering advice on how to remove/obscure the copyright notice need to get a life! Such removal without permission from the developer is perfectly illegal (as is...
Forum: PHP Mar 15th, 2008
Replies: 5
Views: 1,040
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 34 of 34

 


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

©2003 - 2009 DaniWeb® LLC