I am using C# with ASP.NET. How do i check if a variable has been received as a POST variable? The requirements is i must do different actions based on POST and GET. What if i have a variable name in both get and post, how do i check them both?
...
I have a PHP file that handles sending out confirmation emails. I also have a calendar that I use AJAX to do various updates. When AJAX calls the update file, it updates the database with the new information, and I want confirmation emails to be sent out.
So from inside the php file that the AJAX calls, I figured I should include("email...
hello im using this code to do search
<form action="arama.php" method="get">
<input type="text" name="lol">
<select name='kategori'>
<option value="tum">Tum kategoriler</option>
<?
while ($kat = mysql_fetch_array($kategori_isim)) {
echo "
<option value=".$kat[kategori_isim].">".$kat[kategori_isim]."</option>";
}
?>
</select>
<inpu...
Hi,
Using System.Reflection, I can get all methods from a specific class...but I need know what are the refereces to these methods. For examp. In Visual Studio, if you want the references of specific object...you make right click on the object and select "Find All References"...and Visual Studio show the references of this selected obje...
Hello!
When I try to run a script by cron I get this error messaege:
/bin/sh: get: command not found
I also tried it in bash shell, and I tried 'curl', 'wget' and 'fetch' but non of them helped.
Can anybody tell solution? : D
...
I was wondering which is the best approach to get the catgeory ID when listing the posts within a particular category. Normally, the urls look something like this : www.example.com/?cat=4 and it is pretty easy to get the id. However, I really need the urls to be routed like this www.example.com/categories/hotels . wordpress provides an e...
Hi all...
I have a javascript array say jsArr[]. I want this array to be passed to a php page through the get method. Something like "nextPage.php?arr=jsArr[]".
There i should be able to access the array like "$arr[] = $_GET[arr]" and perform operations like foreach($arr as $key => $val).
Is it possible...?
Thanks a lot in advance.....
I am trying manipulate Jquery Infinite Carousel into dynamically resizing the image container based on the currently displayed image. I need to get the index of the Li element that contains the current image, but the problem is that Infinite Carousel removes and reorders the Li's automatically, which means that their EQ() properties are...
I am trying to send a get or a post through a command-line argument. That is test the script in the command line before I test through a browser (the server has issues). I tried searching online, and I suppose I was probably using incorrect terminology because I got nothing. I know this is possible because I saw someone do it. I just don...
Hi,
I use qQuery as a glue to obtain/search original DOM elements by ID to use their original properies and methods. jQuery provides the function get() for this. How does this work with the input element?
<html>
<head>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script>
$(function () {
...
Hi,
I have a url and I want to retrieve the html dom generated when going to the url (all the code for the page) in a javascript variable.
How can I do this? I'm guessing an html get or post? Can anyone give an example with jQuery?
Every time I do a $.get or $.post like this:
$.get("http://www.google.ca", function(result) { alert(res...
When to use GET and when POST. I want to hide my query string on code like :
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("~/Page1.aspx?mode=Create");
}
I don't want to show Create word in query string . What i have to do. And how to implement
the Post/Redirect/Get pattern .Please send me code ...
Hi,
I'm just making a small utility with a local html file (checker.htm) with JavaScript(using jquery) on my desktop that requests data from my website every 10 mins. if it finds it then does nothing. else alerts me.
The problem i'm facing is :
I can't seem to use either POST/GET from the local htm file c:\checker.htm :
<script src="...
<form method="get" action="">
<select name="name" onchange='this.form.submit()'>
<option value="a">a</option>
<option value="b">b</option>
</select>
<select name="location" onchange='this.form.submit()'>
<option value="x">x</option>
<option value="y">y</option>
</select>
</form>
I select option 'a' a...
Hi,
I have AJAX calls that get content that expires often.
To get that content is is better practice to use:
Post
or
Get and set the Cache Expiration Date as immediate on the server?
Thanks,
Jon
...
Problem:
I have a page that has a large form, and in the middle of it I have an image as an input. From that image I get the x and y coordinates for where the user clicked, do some calculation, and redirect to a different page. However when I use Google Chrome on this page I find that the x and y coordinates are not posted, and so this...
I am building a simple admin area for my site and I want the URLs to look somewhat like this:
http://mysite.com/admin/?home
http://mysite.com/admin/?settings
http://mysite.com/admin/?users
But I am not sure how I would retrieve what page is being requested and then show the required page. I tried this in my switch:
switch($_GET[])
{
...
How do I get this to pull my 2nd variable? (I already have a switch setup)
<body id="<?php if (! isset($_GET['page'])) { echo "home"; } else { $_GET['page']; echo $page; } ?>">
I have a switch statement that pulls the pages from
index.php?page=#####
and I have just added this part to my switch:
index.php?page=####§ion=#####...
I was wondering if anyone had used the SLI Systems search system on their website. I was wanting to know the parameters for adjusting the limit of products returned per page in a search.
For example this site.
...
Hello.
c++ question.
for(i=1;i<10000;i++){
cout << myfile.get();
}
Will program make 10000 IO operations on the file in HDD? (given that file is larger)
If so, maybe it is better to read lets say 512 bytes to some buffer and then take char by char from there and then again copy 512 bytes and so on?
...