Forum: PHP Jun 1st, 2008 |
| Replies: 48 Views: 3,735 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 Yes. This should work:
$path = $_SERVER['DOCUMENT_ROOT'] . '/upload/';
Matti Ressler
Suomedia |
Forum: PHP Apr 10th, 2008 |
| Replies: 48 Views: 3,735 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 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 Views: 2,769 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 Views: 2,769 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 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 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 Views: 2,769 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 Views: 2,769 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 Views: 3,556 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,556 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 Views: 2,769 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 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 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 Views: 2,769 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 Maybe she can answer all by herself also :icon_wink: |
Forum: PHP Mar 31st, 2008 |
| Replies: 5 Views: 869 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 Views: 2,769 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 You have a missing closing curly bracket } in your code.
Matti Ressler
Suomedia |
Forum: PHP Mar 31st, 2008 |
| Replies: 9 Views: 1,261 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 Views: 2,769 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 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 Views: 2,769 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 Views: 3,556 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,769 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,556 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 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 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 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 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: 749 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,556 |
Forum: PHP Mar 29th, 2008 |
| Replies: 8 Views: 922 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,556 $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 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 Well, as I first suggested, declare the variable:
$sentmail = NULL;
Matti Ressler
Suomedia |
Forum: PHP Mar 28th, 2008 |
| Replies: 1 Views: 394 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 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 Its possible. It requires a GEO-IP database. There are a number of free and commercial ones available.
Matti Ressler
Suomedia |