Hey,
Sorry for not formatting my code. the toolbar was gone...
I want to insert some data into a mysql db. I've wrote a function in php:
function add_ID($ID, $token) {
$add = "INSERT INTO ids (ID, token) VALUES ('$ID', '$token')";
mysql_query($add);
echo 'added successfully';
}
if(isset($_GET['addDeviceID'])) {
add_ID($_GET['...
Hi there,
I'm writing my first CakePHP application and am just writing the second part of a password reset form where a user has received an email containing a link to the site and when they click it they're asked to enter and confirm a new password.
The url of the page is like this:
/users/reset_password_confirm/23f9a5d7d1a2c952c01af...
I have a texture2D where I want to get the color of a specified pixel. Do something with it and put a new color in an other texture2D.
I will need to do this with all the pixels in the texture. How can I do this.
No pixel shader's please. It need to be in C#
...
I've got a url - http://callisto/news/1st_February_is_here... - which has three trailing dots, but by the time it gets passed through mod_rewrite and reaches the script (in $_GET) the dots have been removed (but the rest of the string is OK).
This is the htaccess rule:
RewriteRule ^([^/]+)/(.*)$ index.php?__action=site&__filter=$1&__pa...
Is there a good reason why I shouldn't be mixing POST and GET?
For example:
<form action="http://example.com/?param1=foo&param2=bar" method="post">
...
Lately I've been using a wrapper PHP class that fetches GET and POST data and lets me access it using a single getter function. After years of developing web applications I've never had a single good reason to care whether an incoming var was coming from POST or GET. Not only that but I got really sick and tired of having to check both a...
I create my listview in my design part, not programmatically.
Then I want to reach this listview's content when I pressed some button.
In my main form, I created a public listview to return listview2 as in my design.
public ListView lst
{
get { return listView2; }
set { listView2 = value; }
}
Then in my other...
I know that with the SimpleHTTPServer I can make my directories accessible by web-browsers via Internet. So, I run just one line of the code and, as a result, another person working on another computer can use his/her browser to see content of my directories.
But I wander if I can make more complicated things. For example, somebody uses...
I'm taking a class in PHP and I'm a real newbie when it comes to best practices and whatnot.
I have a little homework that the teachers wants me to hand in.
Create a form that asks a user for his name, last name, age and birthday.
When the users clicks submit, take him to the second form and ask for his location, nationality and reli...
The following code does not return anything:
$('.foo', $('<div class="foo">foo</div><div class="bar">bar</div>').get(0)).html()
Is there any way to specify a string representation of xml/html as the context parameter of the jQuery function? I'm trying to select a section of an html document retrieved from an ajax request; the ajax ...
I found the quoted text in Programming Python 3rd edition by Mark Lutz from Chapter 16: Server-Side Scripting (page 987):
Forms also include a method option to specify the encoding style to be used to send data over a socket to the target server machine. Here, we use the post style, which contacts the server and then ships it a strea...
I downloaded apple's demo for using HTTP POST and GET (Their sample app has a tabbar with different parts) and the code is so confusing!
Could anybody give me some sample code or a link to some tutorials about it? :)
Thanks!
...
Hello,
I want to get a HTML and use like a file in C. Actually I can do that, but I have to save the file first on the disk and then use fopen("/file.html", "r");. What I would like to do is to extract the html directly from the URL and work with it.
Hypothetically, fopen("http://www.google.com", "r");
I saw something about libcurl bu...
I'm trying to understand REST. Under REST a GET must not trigger something transactional on the server (this is a definition everybody agrees upon, it is fundamental to REST).
So imagine you've got a website like stackoverflow.com (I say like so if I got the underlying details of SO wrong it doesn't change anything to my question), wher...
A flex app running in a view of my .NET MVC app can load data fine from another route, but submitting data via either POST or GET never invokes the controller action. Interestingly, the only way I can get the action method to fire is by passing intentionally malformed post variables in the http request. Odd.
Content type is application/...
Hi All,
I have one problem , I want to get some data from XML file (if I can say that it is XML file), with jQuery:
This is my jQuery, it works with normal XML file :
$.ajax({
type: "GET",
url: "test.xml",
dataType: "xml",
success: function(xml) {
$(xml).find('result').each(function(){
...
I have a form that submits a search for blogs on my site via GET.
The form works fine, but when submitted, the url on the following page reads ("Find it" is the value of my submit button):
www.example.com/search.php?sub_q=Find+it%21&q=tennis
This just isn't an aesthetically pleasing url. Is there a simple way to exclude the submit...
Let's say I have this url: www.example.com/test.php?page=4
How do i retrieve the value of $_GET['page'] with jQuery? o_O
...
Hi,
I'm trying to populate a jqGrid from a jQuery.get() response and I'm having difficulty.
I have my have table set up pretty simply and have been able to successfully call my servlet and return the xml through the following setup:
$("#table_1").jqGrid({
datatype : 'xml',
url : 'QueryServlet?param1=x',
...
// the res...
I have a PHP class that stores a complex multidimensional array, and rather than write individual accessor methods as an interface to this array I decided to use PHP5's __get method.
As I started to write these magic accessors it donned on me that I had no idea what best practices are here, so I thought I'd ask. Is one large if/else str...