Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: Airshow ; Forum: PHP and child forums
Forum: PHP 2 Days Ago
Replies: 6
Views: 120
Posted By Airshow
Good suggestions venkat0904. Certainly worth a try.

Airshow
Forum: PHP 2 Days Ago
Replies: 6
Views: 120
Posted By Airshow
I don't think it's the !Doctype.

Could be your editor. MS Word with "smart quotes" turned on is a particular annoyance. Maybe other editors too.

First thing to try is Notepad to...
Forum: PHP 15 Days Ago
Replies: 4
Views: 225
Posted By Airshow
lifeworks,

I'm not certain but think you have to compose your mod_rewrite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) rule such that it passes on the originally request url as a...
Forum: PHP Oct 27th, 2009
Replies: 4
Views: 249
Posted By Airshow
Either you have or I have jomanlk. :ooh:

Given that Javascript is well equipped with setTimeout and setInterval I can't see that a cookie would be necessary.

My solution does assume that on...
Forum: PHP Oct 27th, 2009
Replies: 4
Views: 249
Posted By Airshow
DemonGal,

There's a couple of ways to go.

1) AJAX: A script, which is scheduled to grab a new image url from a corresponding server-side script every 5 minutes, then DHTML it into the DOM. This...
Forum: PHP Sep 3rd, 2009
Replies: 2
Views: 366
Posted By Airshow
Barman007,

At top of file your have

$apiWidth = $conArr[0]->mapHeight;
$apiHeight = $conArr[0]->mapWidth;

which looks like heigh<===>width inversion.

Then you could try:
Forum: PHP Aug 25th, 2009
Replies: 4
Views: 520
Posted By Airshow
trtcom1,

I think it's simple - to select a course, you need just one select menu, not two.


<SELECT NAME="course">
<OPTION VALUE="101">MATHS</OPTION>
<OPTION VALUE="102">BIOLOGY</OPTION>...
Forum: PHP Aug 20th, 2009
Replies: 5
Views: 205
Posted By Airshow
kk29 is right, it's just a question of getting those devilish quotes in the right place.

By the way, the line break between tags won't appear as a line break in the served html. For that you need...
Forum: PHP Aug 10th, 2009
Replies: 14
Views: 742
Posted By Airshow
Very nearly Tekkno.

Data comes from the database. There is no fear of injection because the parameters that determine the SQL query pass through a lookup process that will only return good...
Forum: PHP Aug 10th, 2009
Replies: 14
Views: 742
Posted By Airshow
Tekkno,

From your question, I'm not completely sure I've explained it adequately - it's your phrase "Once the data is in the array", though maybe it's just me reading it wrongly.

The arrays...
Forum: PHP Aug 9th, 2009
Replies: 14
Views: 742
Posted By Airshow
Tekkno,

First, please allow me to correct a couple of lines I posted above. I must have been more tired at the time than I realised.

if( isset($_GET['cat']) && isset($categories[$_GET['cat']])...
Forum: PHP Aug 8th, 2009
Replies: 14
Views: 742
Posted By Airshow
You could simply set up a couple of associative (hash) arrays and use them to look up "coded" values:

$categories = array(
'a' => 'cat',
'b' => 'dog',
'c' => 'orange',
'd' => 'apple'
);
...
Forum: PHP Aug 4th, 2009
Replies: 5
Solved: PHP popup
Views: 629
Posted By Airshow
Whitey,

Well done .... but you might like to consider the following:

As a matter of design as opposed to coding, I would change things a little (probably less than you might think), thus...
Forum: PHP Aug 4th, 2009
Replies: 5
Solved: PHP popup
Views: 629
Posted By Airshow
Whitey,

This is very confused! From the user perspective, what are you trying to achieve?

Airshow
Forum: PHP Jul 28th, 2009
Replies: 9
Views: 298
Posted By Airshow
Veledrom,

I'm afraid that rule 4 applies.

For most users (probably not all?) when they revisit a page that was originally requested with POST data, then the browser will ask its question.
...
Forum: PHP Jul 27th, 2009
Replies: 9
Views: 298
Posted By Airshow
Or use method="get" instead of method="post" to pass request parameters when the page is originally requested.

Airshow
Forum: PHP Jul 18th, 2009
Replies: 5
Views: 389
Posted By Airshow
Aditi_19,

Build the back button's url as pritaeas says above and read parameters from $_GET and $_POST as I say above. Modify my code to read the parameters you are interested in (SelectType,...
Forum: PHP Jul 17th, 2009
Replies: 5
Views: 389
Posted By Airshow
Aditi,

There is a number of ways to do this and your suggested method is probably the way I would do it.

It looks like you need two be able to accept parameters passed by $_POST and $_GET...
Forum: PHP Jul 16th, 2009
Replies: 2
Views: 266
Posted By Airshow
DV,

In the style sheet, delete #nav li #current a{} and #nav li #current span a {}, then amend #nav li a:hover{} and #nav li a:hover span as follows:

#nav li a:hover, #nav li#current a {...
Forum: PHP Jul 10th, 2009
Replies: 1
Views: 342
Posted By Airshow
Sanj,

In the php while loop,

//-- find
//while($file = readdir($dir_handle)) {
//-- add before
$imageArray = array();

//-- find
Forum: PHP Jun 21st, 2009
Replies: 6
Solved: Odd $_GET issue
Views: 484
Posted By Airshow
Zurompeta,

Mmm, odd. I can only suggest a diagnostic approach.

Backup sorting.php then strip the original down to the bare bones:

<?php
$value = $_GET['value'];
$type = $_GET['type'];...
Forum: PHP Jun 21st, 2009
Replies: 6
Solved: Odd $_GET issue
Views: 484
Posted By Airshow
Zurompeta,

You are right, the symptoms are very odd.

The only thing that would make any sense to me is if some code higher up in sorting.php was doing the sql job and then destroying $_GET...
Forum: PHP May 29th, 2009
Replies: 8
Views: 501
Posted By Airshow
Helen,

Case sensitivity of filenames is a server issue, and there's nothing you can do in the HTML other than use the right case for every filename you wish to your users to see.

Realistically,...
Forum: PHP May 29th, 2009
Replies: 2
Views: 348
Posted By Airshow
Thecodingbee,

As I'm sure you realise, you need to store all user configuration settings somewhere - the question is where?

You could use a cookie, which would tie a particular user...
Forum: PHP May 14th, 2009
Replies: 10
Views: 901
Posted By Airshow
If I understand correctly, the solution lies in your Apache configuration. I had the same problem until I learned how to set up virtual hosts (and then how to compose urls in the corresponding...
Forum: PHP Apr 24th, 2009
Replies: 1
Views: 1,314
Posted By Airshow
dwatycha,

For file upload, you really need to do some background reading. The PHP Manual is a good place to start:
http://www.php.net/manual/en/features.file-upload.php

But if you want to...
Forum: PHP Apr 18th, 2009
Replies: 11
Views: 1,155
Posted By Airshow
Solocky,

Another thing ........ your code has smart-quotes in it, which will really screw things up. PHP only understands straight-quotes, "..." and '...' (which behave differently in some...
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 1,155
Posted By Airshow
Solocky,

Even better, change the line :-

if ($submit && $say != '') {

to

if ($say != '') {
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 1,155
Posted By Airshow
OK, try this :-


<?php
// String params (do it like this, or similar for security reasons - ie avoid code injection)
$params = array('say' => 'say'); //add further string params here as...
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 1,155
Posted By Airshow
OK, I'll turn on my development machine and debug the code .....
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 1,155
Posted By Airshow
Solocky, as I understand it, you don't need to pass all those hidden strings in HTML to the client; the user never sees them; they just get written to your text file with the users "say" input...
Showing results 1 to 31 of 31

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC