i have done something like this:
<form action="validate.php" method="get">
Id :<input type="text" name="pID"/><br/><br/>
Name :<input type="text" name="pName"/><br/><br/>
Description :<input type="text" name="pDesc"/><br/><br/>
Price :<input type="text" name="pPrice"/><br/><br/>
<input type="submit" name="pSub"/>
</form>
my validate...
Hi,
I'm using proc_open to run a filter on some output from a database, potentially a large number of lines. Do I need to handle the potential for blocking specially, i.e. is it likely that sending a large chunk of data to the filter and not reading from it's stdout will cause it to block it's stdin, preventing my script from writing un...
Is there any way to create MLM Tree (i.e. not binary tree) in HTML/jQuery/CSS. Below is the result set I have to generate the MLM Tree with.
id username parent_id level
2 bhupinder 1 1
6 nokia 2 2
9 testbhupinder02 2 2
10 InvitationNokia 6 3
8 testbhupinder 6...
I'm new to PHP and trying to get my head around security.
I have an admin page that gives access to certain administrative tasks. Right now, it lets you repopulate database tables with some seed data.
To access the admin page, you first need to login. Currently the login is not over https (it will be soon).
If you authenticate, a tok...
Hi All,
I was wondering if anyone had experience of trying to get Eth to enter into a mysql database properly at all? I have a simple html form, processed using PHP4 code which stores the data in mysql, but i want to allow users to be able to use characters such as Ð, æ, ö and the like. I have tried different collations such as latin1 a...
I am using PayPal express in Sandbox mode in my PHP script (curl + SOAP).
I have a simple purchase form with 1 "buy" button.
When it's clicked
I send initial SetExpressCheckout request and get successfull response from paypal
with Acc=success and a fresh token
<Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack>
<Token xsi:type="e...
Hello,
Please find the code below
<script type="text/javascript">
$(function(){
var c=1;
$("#i1").toggle(function(){
$("#e1").appendTo("#i2");
$('#counter').attr('value',c);
},
function(){
$("#e1").appendTo($(this));
$('#counter').attr('value',c);
}...
Hi
On our development PC we need to have a prepend file (loaded via auto_prepend_file in php.ini) to set up severals paths. This prepend.php file is used on all of our server and help us to easily configure all applications.
But the Zend Server 5 GUI (http://localhost:10081/ZendServer/) does not work when auto_prepend_file is set, and A...
Hello,
The problem is of a content website that is being scraped so badly that it breaks the server.
Is there an easy method of limiting access for IPs to a fixed number of requests at a time OR per day ? ( 10 pages / day or.... 10 pages every 2 minutes )
Ideally, I would keep a wildcard list for search engines and disallow everybod...
I want to use bar chart in web application.
I have searched many libraries including google code, and many but many do not support negative values for bar charts.
...
//In PHP,
$a ? $b : echo $c //does not work but
$a ? $b : print $c //works
Is there a reason for this?
BTW,is not a keyword in PHP?
...
Hi
iam developing a module in Drupal, which needs to have a locking machanism, When one user operating on form submission other should nt take action,
How do i can achieve this in php/drupal
iam using mysql database with MyISAM/INNODB
Please help me
Thanks in advance
Kamal
...
ex.
<Form>
<input type="text"/>
<span style="display block">your text should be between 4-8 chars</span>
</form>
anyhow just need some kind of pregenerated hint message so I can show hint using JS(Jquery) afterwile
what is best way to deal , extending the parent class or is there some other way?
...
I have a time stamp I created with PHP that I would like to convert to the same format as new Date() in javaScript.
Here's my code:
$current_timestamp = time();
//This returns a value such as 1268214657
I need to create a string using that timestamp that looks like this: Fri Mar 12 2010 01:50:33 GMT-0800 (Pacific Standard Time).
...
after all stuff behind is run
immediately
Which is the case? Can anyone verify this?
...
I am trying to write a simple Wordpress plugin, which updates a custom field value and increments it by one, and then echos the result which is handed back to my javascript code. For some reason, the data returned by the callback function always has an extra 0 appended to the end.
function like_post_callback() {
$clicked = $_POST['c...
Hi, this is frustrating... I keep getting an error with my ftp_put:
This the error: No such file or directory in /Users/xxxx/Documents/Work/something
Is there any glaring errors in my code I'm blind to?
$server = "79.170.40.xxx";
$connection = ftp_connect($server);
$login = ftp_login($connection, "xxx.xxx.co.uk", "xxx");
if (!$con...
Hi to all,
Please is there any workarround to avoid the new line generated while sending data using SendAndLoad(); in AS2 ?
I send "00:00:12:36"
But php output:
00
:00
:12:36
Any help??
...
$arr = array($arr1,$arr2,..);
How to search through $arr to find the one with key1 => 'something',key2 => 'something else'
...
Hi All,
When authenticating to ldap using the following php code:
$ldap = ldap_connect("ldap.example.com")
if($bind = ldap_bind($ldap, $_POST['username'], $_POST['password'])) {
// log them in!
} else {
// error message
}
Is there any way to sent the client IP address to the AD server rather than the server IP?
...