Search Results

Showing results 1 to 40 of 96
Search took 0.01 seconds.
Search: Posts Made By: Suomedia ; Forum: PHP and child forums
Forum: PHP Jun 1st, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
I think the only problem that you have is that you have not respected the case sensitivity of variables, eg, in your form you have the file field named as "Picture" whereas in the processing script...
Forum: PHP Apr 10th, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
Yes. This should work:

$path = $_SERVER['DOCUMENT_ROOT'] . '/upload/';


Matti Ressler
Suomedia
Forum: PHP Apr 10th, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
The image(s) must be attached to the mail in the way that I showed you. Exactly where on the server the file is moved to is up to you. It actually is normally uploaded to /tmp/ and must be moved...
Forum: PHP Apr 9th, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
On some web servers you can set permissions using your FTP client. In most you can right click the file or directory and chosse to set permissions. I use Filezilla and it has "file attributes" in...
Forum: PHP Apr 3rd, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
Now you have overstepped all boundaries of decency.

Please backup your accusation or make an unreserved apology.


Matti Ressler
Suomedia
Forum: PHP Apr 3rd, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
Setting the action of a form using javascript is idiotic. That was my point, not yours. That I pointed it out has caused you to continue trolling like this ever since.

[/QUOTE]

This is...
Forum: PHP Apr 2nd, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
It the directory structure of your webspace on the server. Create a file with this, put it in your main directory and open it:

<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>

That will give the...
Forum: PHP Apr 2nd, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
In each of the files that have the error (3 in the attachment) add a closing curly bracket } before the very last ?> in each file.

With your $path variable, it MUST be a full file system path,...
Forum: PHP Apr 2nd, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
Why be sarcastic about something that is quite clearly correct? You try to make a point that non essential things like "listen" buttons not working are "bad", yet cant see how ridiculous it is to...
Forum: PHP Apr 2nd, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
You are sarcastic about the reality of how bad your solution is? Now THAT is funny :icon_cheesygrin:

You spend so much time bagging a site because non essential javascript controls don't work...
Forum: PHP Apr 1st, 2008
Replies: 29
Solved: Login session
Views: 3,556
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,556
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 Apr 1st, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
There, by your own hand. Your "solution" was a very bad one.

As for your bagging of holyculturedownload.com, I believe that is jealousy pure and simple :icon_lol:


Matti Ressler
Suomedia
Forum: PHP Apr 1st, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
Please use the attachment option (the paper clip) and attach a zip of your files to your next post.


Matti Ressler
Suomedia
Forum: PHP Apr 1st, 2008
Replies: 5
Views: 869
Posted By Suomedia
You would need the domains hosted on the same server and serve the images using a proxy. (needs root access). Not my forte so you will need to Google it if nobody else has a solid answer.

...
Forum: PHP Apr 1st, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
Clearly you have a bee in your bonnet. So, you find that javascript controls dont work on a site when javascript is turned off? Congratulations, perhaps you learned something?

Now look at the...
Forum: PHP Apr 1st, 2008
Replies: 5
Views: 869
Posted By Suomedia
Maybe she can answer all by herself also :icon_wink:
Forum: PHP Mar 31st, 2008
Replies: 5
Views: 869
Posted By Suomedia
Why are you creating an e-commerce application when there are open source ones available (including multiple stores . I know at least two)?


Matti Ressler
Suomedia
Forum: PHP Mar 31st, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
Now that is pedantic... the "listen" button is clearly a javascript/Ajax control. The point was that the SITE functions without javascript for the purpose of search engine indexing (which it does...
Forum: PHP Mar 31st, 2008
Replies: 48
Views: 3,735
Posted By Suomedia
You have a missing closing curly bracket } in your code.


Matti Ressler
Suomedia
Forum: PHP Mar 31st, 2008
Replies: 9
Views: 1,261
Posted By Suomedia
Yes, of course it can be done with php. Its quite a bit of code which I don't have the time for, but I am sure somebody else probably will. The web is full of tutorials on how to do this.

...
Forum: PHP Mar 31st, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
What Ajax? A well written script will function without either javascript or Ajax. A good example: http://holyculturedownload.com/

This is a heavily Ajaxed site. Turn off javascript and it is...
Forum: PHP Mar 31st, 2008
Replies: 9
Views: 1,261
Posted By Suomedia
Yes. If you use phpmyadmin you will see it as export options in many formats. One that I commonly use is CSV.


Matti Ressler
Suomedia
Forum: PHP Mar 31st, 2008
Replies: 22
Solved: form coding
Views: 2,769
Posted By Suomedia
And if the user has javascript turned off? Nothing happens, not good.

Your are far better to structure you page in such a way as to not depend on javascript.

Most login/register pages have...
Forum: PHP Mar 30th, 2008
Replies: 29
Solved: Login session
Views: 3,556
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,769
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,556
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: 922
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: 3
Views: 1,744
Posted By Suomedia
I don't believe you will find a way to access remote hardware using PHP.

If you do, please let me know.... maybe I can win a MacBook Air also! :icon_lol:



Matti Ressler
Suomeia
Forum: PHP Mar 29th, 2008
Replies: 1
Views: 408
Posted By Suomedia
I don't see anything there that wont run on PHP4, although I would change this:

$query = "SELECT * FROM $table_id";

to this:

$query = "SELECT * FROM " . $table_id;


Perhaps the problem...
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 922
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: 749
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,556
Posted By Suomedia
Mark as solved ;)
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 922
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,556
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: 8
Views: 975
Posted By Suomedia
Perhaps something like this?


<?php
function myfunction($buffer) {
return str_replace('hello', 'goodbye', $buffer);
}
$mystuff = ob_start("myfunction");
?>
I am here to say hello
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 1,324
Posted By Suomedia
Well, as I first suggested, declare the variable:

$sentmail = NULL;


Matti Ressler
Suomedia
Forum: PHP Mar 28th, 2008
Replies: 1
Views: 394
Posted By Suomedia
Probably the best way to start learning is to pick up an open source application such as Joomla or PHPnuke and learn from it, modify it, break it.

I use WAMP as a local development environment...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 975
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,247
Posted By Suomedia
Its possible. It requires a GEO-IP database. There are a number of free and commercial ones available.


Matti Ressler
Suomedia
Showing results 1 to 40 of 96

 


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

©2003 - 2009 DaniWeb® LLC