I'm trying to figure out a way to read GET method information from a form with javascript. Our IT department has our servers on lockdown, and as the web team we can only use javascript to accomplish our tasks. I'd use PHP if I could, but I can't.
What I need to do is read data sent via GET method in js if possible, so that I can assign ...
TABLE PRODUCTS_CATEGORIES
product_id category_id link_type position
2 22 M 0
3 22 M 0
4 22 M 0
5 22 M 0
6 1 M 0
7 1 M ...
Hi,
I'm using the Gowalla API to log a user into my site. I've got everything working except for the part below using the OAuth login. I'd like to integrate this into my php site as easily as possible. I.e just make a simple function call from php that can retrieve the data.
The examples I found on php.net don't cover thee types of c...
Hey everyone
I have two tables in the database(videos and viewData) .
Im trying to build a script that runs for each record in the "videos" table and does something using the "videoID" field for that specific entry in the "videos" table. The does something part would be dumping some data into the viewData table.
Would I need to store ...
Hello,
I have this line of string
Fruits-banana|apple|orange:Food-fries|sausages:Desserts-ice cream|apple pie
the : (colon) is the separator for the main topic, and the | is the separator for the different type of sub topics.
I tried to explode it out and put it into array, I need the result to be something like this to be displayed...
I'm writing a specialized PHP proxy and got stumped by a feature of cURL.
If the following values are set:
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt( $ch, CURLOPT_HEADER, true );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
cURL correctly handles redirects, but returns ALL page headers, not just the final (no...
From comments
I found the issue :(, Thank you so
much for your help, its appreciated,
the reason's was because error
reporting was switched off and then
there was a missing function, causing
the script to stop executing in its
place
For some reason this Xpath query is not working as expected
foreach($this->Xpath->query...
I have a situation where after several years of use we are suddenly have some JSON-encoded values that are giving our Perl script fits due to backslashes.
The issues are with accented characters like í and é. An example is Matí encoded as Mat\ud873.
It is unclear what may have changed in the environment. PHP, Perl, and MySQL are involv...
I have created a gallery in a WordPress post using WordPress's native media gallery and it shows me the images as gallery thumbnails in rows and columns which is exactly what I want.
But when I click on any of the thumbnail it opens the direct image link. I want that the image should be shown in my blogs environment. I would actually wa...
I'm creating a graph that does some database queries then builds the graph using GD functions then also puts the info from the database into an array that is stored in $_SESSION['my_data']. This graph is displayed on the web page using img tags.
<img src="my_graph.php?time=$time">
<?
print_r($_SESSION['my_data']);
?>
The problem ...
Hi there,
I'm currently looking to make the jump between a programmer who code for fun to a freelancer who gets money for his work.
However, Because I dont have any experience at the business world, I'm finding it difficult to get jobs becasue of the lack of previous works I can show to the client.
Any advice on getting those first jobs?...
I'm using the following code in an index.php page to display content from one page on another domain. However, it works fine in IE, but when I load the page in Firefox, its missing php data.
Am I doing something wrong or does firefox not allow this? Any help appreciated.
$domain = $_SERVER['HTTP_HOST'];
$crawl = "http://www.mysite.co.u...
in php I do this:
<?php
function displaySomething($list) {
foreach ($list as $item) {
?>
<html code here><?php echo $item["field"] ?><html code again etc>
<?php }
}
?>
And then I use it to display different lists in different places in my page.
Is there a way to achieve this with jsp? Create methods with paramete...
Hi,
I'm trying to login to a remote site called Lectio. The site sets six cookies on your computer when you visit it. When I try to log in with cURL, I only get two cookies.
Three of these six cookies should be set even when entering the site and not logging in. I get two of these cookies. I guess the last one is set through JavaScript...
I am trying to match a string like the following:
<input type="text" value="cbyEOS56RK3lOxtiCrhmWSkDuNWwrFN4" name="iden">
This is my code:
$pattern = '~value="(.+?)" name="iden"~';
preg_match($pattern, $page, $match);
print_r($match);
As you can probably see, I am trying to match the value in this HTML input. By what I know of reg...
Hello all I'm new to this whole thing still.
I would like some help figuring out how to do this please. I can pull info out of a database and put stuff in using ajax/javascript but I cant figure out how to complete the problem below. I want to be able to make my php form submit and update with out page refresh.
Example.
Page1. Main p...
Just a quick newbie PHP syntax question.
I have a variable, let's call it $tabs which always contains a string of numbers separated by commas, like so: 24,35,43,21
I also have a variable that's an array:
$args = array('post_type' => 'page', 'post__in' => array(27,19,29), 'order' => 'ASC');
That's of course WordPress. What I need to ...
What I have is this:
$SQL = "SELECT * FROM users";
$query = mysql_query($SQL) OR die(mysql_error());
$row = mysql_fetch_array($query);
$implodeEmail = implode(", ", $row['paypal']);
$mailTo = "noreply@" . $_SERVER['HTTP_HOST'];
$mailSubject = $bootTitle;
$mailMessag...
I'm trying to execute
I have an html form in a page of this sort :
Name: <input type="text" id="namebox" value="" name="fields[]" /> <br />
Position: <input type="text" id="positionbox" value="" name="fields[]" /> <br />
<input type="hidden" name="createcard">
<input type="submit" value="Create">
.. and 3 other fields. I'm passi...
Hello,
I'm using SimpleXML to parse a YouTube search feed. I want to get the first result in the feed after searching for a term. Right now my code looks like this:
set_time_limit(0);
// Include needed files
require_once "config.php";
$xml = simplexml_load_file('http://gdata.youtube.com/feeds/base/videos?q=V.I.P.+KE%24HA&client=y...