Hi all,
I have the following code:
$q1 = $_POST["q1"];
$q2 = $_POST["q2"];
$q3 = $_POST["q3"];
$q4 = $_POST["q4"];
$q5 = $_POST["q5"];
$q6 = $_POST["q6"];
$q7 = $_POST["q7"];
$q8 = $_POST["q8"];
At the moment, this is hard coded and I need to manually change it each time, I'd like to use variables instead so that it's not a manual pr...
Hi
I am having trouble uploading a file. First of all I have a class:
class upload
{
private $name;
private $document;
public function __construct($nme,$doc)
{
$this->setName($nme);
$this->setDocument($doc);
}
public function setName($nme)
{
$this->name = $nme;
}
public function setDocument($doc)
{
$this->document = ...
I am working on the project that is based on symfony (doctrine) with use of a facebook api. I really want to get the description of architecture of in terms of some diagrams, so What steps(in terms of types of diagrams) should I take first before coding ?
...
I am using the following to output the full name of a month in Greek.
setlocale(LC_TIME, 'el_GR');
strftime("%B");
This works, except the output string is ISO-8859-7 (greek code page), which is a problem since I need a UTF-8 string. I could put this through iconv to convert it, but I was wondering if there was a way to do that withou...
Hello,
For the past three months I've been working for an Indian NGO (http://sevamandir.org), doing some volunteer work in the field but also trying to improve their website, which needs a ton of work. Recently I've been trying to fix the "subscribe to newsletter" button, which is broken. I used filter_var to filter the email input,...
Hi,
pear.phing.info seems to be down, does anyone know if there are any mirrors available for this package?
Thanks,
Jon
...
i have a question that i want to display the numbers up to 100 where the sum of their digits is 7.
can any one help me
suppos there is 25 . in ths 2+5=7 then it will be displayed. i have problem to break 25 as 2 and 5
...
Hi,
Apologies if this is an oversight or sheer stupidity on my part but I can't quite figure out how to access the validation array from a callback in a model (using ORM and KO 2.3.4). I want to be able to add specific error messages to the validation array if a callback returns false.
e.g
This register method:
public function registe...
Hello,
Although probarly quite simple, i cannot seem to find the following.
The form takes certain data, and then represents the data in a table.
Next step i click the hyperlink that takes me back to the form.
Now my question is how exactly do i make it possible when filling in the same form again so both results are displayed in the...
Hi everyone,
I am really not sure if this is the right way to go, since exceptions is really a fresh subject to me. Is it possible to catch multiple exceptions (let the execution of the script continue) and then store the exceptions in a array to be able to return all exceptions caused?
By that said, it would be awesome to be able to u...
I am trying to set up a basic Facebook application using PHP and an external .swf
this line
$user_id = $facebook->require_login();
creates this error:
Fatal error: Call to undefined method Facebook::require_add() in C:\httpdocs\facebook_application\index.php on line 10
I cannot find the cause of this error...
...
Hello All,
i m using jQuery.get() to delete row from a table from a page main.php. now i want to show success message after deleting row ,that success message should be in session variable($_session['suxesMsg'])
how do i set success message on a session variable and show on specific span ?
or
is there any other method in jQue...
if I want to use the following Web service (help.be is just an example, let's say it does exist): http://www.help.be/webservice/webservice_help.php (it's written in PHP=client's choice, not .NET) with the following WSDL :
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" name="webservice_help" ...
I have the following array:
'tagline_p' => "I'm a <a href='#showcase'>multilingual web</a> developer, designer and translator. I'm here to <a href='#contact'>help you</a> reach a worldwide audience.",
Should I escape the HTML tags inside the array to avoid hackings to my site? (How to escape them?)
or is OK to have HTML tags inside a...
if( ($_POST['Submit']=='generateexcel'))
{
$tblname=$_GET['generateexcel'];
global $obj_mysql;
$table="tbl_js_login";
function exportMysqlToCsv($table,$filename = 'export.csv')
{
$csv_terminated = "\n";
$csv_separator = ",";
$csv_enclosed = '"';
$csv_escaped = "\\";
$sql_query = "select fld_id, fld_fname,fld_lname...
i have a button in html that has a background image and text overtop of it, how can i disable the selecting of that text so it looks more "seamless"?
echo '<td width="130" height="30"'. "onClick='document.location = ".'"'.$value.'";'."'><center>".$key."</center></td></a>";
...
I have a txt file on the server which contains 10 lines of text. The text file is rewritten sometimes, and I get new lines using "\r\n". My problem shows when I want to load the lines in javascript variables. I do it like this, but this work only for numbers or for the last line of the file, because its not using the breakline tag: var x...
What are some good PHP html (input) sanitizers?
Preferably, if something is built in - I'd like to us that.
UPDATE:
Per the request, via comments, input should not allow HTML (and obviously prevent XSS & SQL Injection, etc).
...
I'm using xampp for my php. And I have download a code igniter and save it on my htdocs. I already made a databasing and a sample page. My only problem is how can I link my css. Where should I save my style.css? How can I call my style.css?
<link rel="stylesheet" href="<? base_url(); ?>stylesheet/style.css" type="text/css" media="scree...
Hello all,
I have two problems which are related.
1) I have a batch file that contains this:
net stop wampapache
net start wampapache
Which tries to stop and start my wamp server. When I double click the stop.bat file with the above it works successfully. When I try to run that from my PHP script, it stops the server but doesn't sta...