hi all,
Can i send a input value into form action ?Let say, on the form the phone number taken.Now can i send the phone number as form action parameter "number"? Is their any way to send it?
<form method="post" action="abc.php?number=ph_number" enctype="multipart/form-data">
<input type="text" name="ph_number" value=""/> ...
Hi, i have a simple text input field users put in a number. I need to check which range the number matches (e.g. >10 or <1 ) and save a separate key/value for that range in the database.
I thought about a hidden field that changes its value as the user enters data but i don't know how to determine the range.
(I cannot modify the submit...
I've got a web page that allows to start a certain process and then redirects to another page that displays log file of that process. Since execution takes up to 10 minutes, I want log page to autoupdate itself or load data from the file periodically.
Right now I added
<meta http-equiv="refresh" content="5;url=log.php#bottom" />
to ...
What is the best way to paginate related data in Yii?
For example I may have post and I want to paginate comments.
...
I'm using WAMP and the root folder of my page is: http://localhost/projects/bp/
In a Worpress application and I want to give unique id's to the body tag of every Page. So I did the following:
<?php
$page = $_SERVER['REQUEST_URI'];
$page = str_replace("/","",$page);
$page = str_replace(".php","",$page);
$page = str_repla...
I've been tasked to maintain a PHP website with a function which automatically generates RTF files and provides a link to download. Each time the previously generated file is overwritten by the new one.
However, it seems that upon attempting to download the generated file, the browser will sometimes retrieve a cached version which is no...
Hi again guys!
Ive got a problem, Im using jquery for my googlemaps thingy Im doin and Im gettin a number from an php array and I´m reading from it via a for-loop and want to translate that number into a word, for example I get the number 1 in the array and then I´d like to translate that number to the word "Core-router".
And return t...
I've downloaded the ZIP archive of PHP and extracted it under my profile. I then needed some PEAR packages. go-pear.bat apparently installed PEAR just fine, I just needed to go into the pear.bat file afterwards and adapt the path to php.exe – no big deal and after that it ran.
However, when I try installing something I get the following...
The comparision operators < <= > >= can be applied for strings as well. So why do we need special function for string comparision: strcmp ?
...
if you search alexa with any URL's you will get a detailed traffic information of the same.
what I am looking into is I would like to parse Visitors by Country info from alexa.
example for google.com
url is - http://www.alexa.com/siteinfo/google.com.
on the Audience tab you can see:
Visitors by Country for Google.com
United States 3...
I have detail page for products and i want to add a module of "related products".
In the db table "products" i store a value called "tags" for each product, something like "tag1, tag2, tag3, tag4".
Now i need to build a query that retrieve all products that match at least 2 of this tags, excluding the id of the main product displayed ...
I have a php page in which I have the following code to validate the user using HTTP authentication, this code works fine for http:// url's but when I use the same page with https:// then it didn't ask for username and password.
//authentication settings
define('USERNAME', 'prashant');
define('PASSWORD', 'password');
//Validating
if (!...
I am executing a.jar file from PHP through Command Line. However, if there is any error/exception, the error is not being displayed.
I am using the following PHP script.
<?php
exec('java -jar D:\\ABC\\JavaApplication2\\dist\\JavaApplication2.jar', $result, $returnCode);
var_dump($result);
$count = count($result);
for($i=0; $i<$count;$i+...
Hi, apologies if I make any cardinal errors in question asking, this is my first post.
Building a simple app in php where the user has permissions to a number of different sets of data which are held in a db with corresponding id's. Currently I have the user switching the set of data they are viewing by choosing a set from a dropdown. ...
i have created two website now i want one of them all url of web site do not end with .html how i can do it.please help me.
...
Basically i want to add wildcards to the the col value when searching...
Usually I do this the other way around like this:
WHERE cakes.cake_name LIKE '%$cake_search%'
however now i want it to match the inverse:
the user searches for 'treacle
sponge', i want this to match a row
where the cake_name column =
'sponge'.
is th...
We need to be able to inform a Delphi application in case there are changes to some of our tables in MySQL.
Delphi clients are in the Internet behind a firewall, and they have to be authenticated before connecting to the notification server we need to implement. The server can be programmed using for example Java, PHP or Python, and it ...
Hi,
when i do a direct input feild as text the input comes through fine but when i change the input feild type to "FILE" and then read the temp contents stored on the server it adds extra characters that are "unknown"
$fileName = $_FILES['userfile']['name'];
$tmpName = $_FILES['userfile']['tmp_name'];
$fileSize = $_FILES['userfile']['...
I have a library "Google" that I keep in a separate GIT repository.
This library is used in some projects. The problem is that I want to rename the library to match the naming convention of these projects, e.g. "Service_Google".
Since PHP doesn't allow for automagic refactoring, the best way I've come up with is to do the following.
...
I have a class that extends Zend_Db_Table lets call it 'Users' that uses the class 'User' (inheriting from Zend_Db_Table_Row_Abstract) as its rowClass. I need it this way because User has additional methods that I use.
As far as I know it is not possible to join tables inside my Users class so I use:
$query = $db->select();
...