User Profile
Collapse
-
If you know the x- and y-values of the cities, can use the PHP imageline command (http://php.net/manual/en/function.imageline.php). It draws a straight line between two points in an image. -
Stephan Needank replied to How to write the 3 fields on the first page of the form (entry page) to the 2nd page?in PHPHoly shit mate, that's a lot of code! I'd love to help you, but can you perhaps highlight the code that needs to be checked? :)
Also, I don't think I understand what your problem is. Is it that you need to have your $_POST data from page 1 available on page 2?Leave a comment:
-
Yes, I ran it in my browser, which is Firefox 4.0.
You need to chmod your directory if you're working on a hosted FTP server, which you can do by right clicking the folder in your FTP client program and then clicking something like 'chmod' or 'edit permissons' (the term used for editing those permissions is chmodding). You need to make sure that the server is allowed to create new files there.
If you're using a local server,...Leave a comment:
-
Thanks a thousand times! That's a great solution, and it works. New code:
[CODE=javascript]function removeMessage(u rl, target_element_ id, img_url, deletion_elemen t_id)
{
if(doAjax(url, target_element_ id, img_url) == true)
{
var div = document.getEle mentById(deleti on_element_id);
// delete the container
div.parentNode. removeChild(div );
}
}[/CODE]Leave a comment:
-
Hm, that's odd, because over here your code is working. Have you checked if you are allowed to create new files in the directory you are trying to create 'sample.txt'?Leave a comment:
-
header('refresh : 5; URL=thanks.html '); // This redirects the page to thanks.html after 5 seconds.
Or you could use
header('locatio n: thanks.html'); // This immediately redirects to thanks.htmlLeave a comment:
-
That's probably PHP to upload the image and then some Javascript to select an area out of it or change the alignment.Leave a comment:
-
What exactly is not working? =) Are you receiving some kind of error or is your file just not being written?Leave a comment:
-
Thank you for notifying me of that! That's something I didn't think of. I'll certainly rewrite that line 23.
I'm trying to work with two AJAX requests, because I don't know another way to handle it in AJAX. I'm a moderate to advanced PHPer, but I'm not exactly what you can call an advanced AJAXer. In PHP I use two seperate files to complete this action: one to delete the message (let's call it delete_message. php) and one to retrieve...Leave a comment:
-
Multiple AJAX requests at the same time not working properly
Hello,
I'm encountering an AJAX problem when I try to execute multiple AJAX requests at the same time. What I want to do is delete a message and display the status (succes or failure) of that in div1, and refresh the messages on the page in div2. This needs (for as far as my knowledge reaches) two AJAX actions from which I both need the responseText.
The problem
What happens when I execute my script is that the second...
No activity results to display
Show More
Leave a comment: