User Profile

Collapse

Profile Sidebar

Collapse
freefony
freefony
Last Activity: Sep 13 '14, 12:44 PM
Joined: Nov 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bcos on coming back to ur site the same function that assigns the referrer overrides it. so i ll suggest u wrap it in an if statement
    [code]
    if($_SERVER['HTTP_REFERER'] != 'mydomain.com') {

    $_SESSION['origURL'] = $_SERVER['HTTP_REFERER'];
    }

    hope this is useful
    See more | Go to post

    Leave a comment:


  • freefony
    replied to Retrieve saved data from database
    in PHP
    onselect of the answer is the form submitted if so u can collect the option selected to a table that relates questions to option the user selected before u load the new question
    See more | Go to post

    Leave a comment:


  • i suggest AJAX i ve used it several times for stuffs like that gives u double advantage loads faster and works for u
    See more | Go to post

    Leave a comment:


  • johny is right and i also think u re using ur quotes wrongly u used a single quote to open the action and then inside again u re using it in $_GET[] to php thats like close quote open new quote why dont u remove the outter quotes i.e action=hello.ph pquestion=3&sco re=$_GET['score''
    See more | Go to post

    Leave a comment:


  • freefony
    replied to autoload does not call class
    in PHP
    thanks YarrofDoom i got it working i removed the try,catch block and it works just fine i dont know why a try block should stop autoloader from calling the class
    See more | Go to post

    Leave a comment:


  • freefony
    started a topic autoload does not call class
    in PHP

    autoload does not call class

    Code:
    function __autoload($class){
    
      include(trim(str_replace('_','/',$class)).'.php';
      if(class_exist){ echo 'my class exists\n'; }
     throw new Exception('class cannot be loaded');
    }
    
    try{
      new dir_to_myclass();
    }catch(exception $e){
      echo $e->getmessage();
    }
    dir/to/myclass.php
    Code:
    echo "here<br/>";
    ...
    See more | Go to post

  • Am using apache 2.2.11 and just discovered that in my httpd config the AccessFileName was not there i copied from internet and pasted there but still not working
    See more | Go to post

    Leave a comment:


  • freefony
    started a topic module rewrite loaded but not redirecting

    module rewrite loaded but not redirecting

    REALLY need help with rewriting urls with htaccess. am assuring u that i ve done almost all i could i ve even copied a codes directly form tutorials.

    my phpinfo says mod_rewrite is loaded and here is my htaccess file
    Code:
    # Start the engine. Vroooom.
    RewriteEngine On
    
    # This resolves paths to the current directory. (You may or may not need this).
    RewriteBase /
    
    # And the rule.
    ...
    See more | Go to post

  • freefony
    started a topic programming POS LCD display to php
    in PHP

    programming POS LCD display to php

    am working on a POS system, i have been able to get data from barcode readers but i need to know if its possible to control what is displayed in the customer pole display with php script are there any resources online i could read?
    See more | Go to post

  • freefony
    started a topic accessing value of a constant from another page
    in PHP

    accessing value of a constant from another page

    hi am going thru a joomla script and they are accessing a constant without re-defining it or including the file where it was originally define. the first line of codes on the script is
    Code:
    defined('_JEXEC') or die('restricted access');
    how is this possible
    See more | Go to post

  • that missed me but its not the problem. the problem is, in the browser onmouseover event for the first tab moves the second and third tabs out of the <div> below the displayed submenus
    See more | Go to post

    Leave a comment:


  • freefony
    started a topic vertical drop down works for only one tab

    vertical drop down works for only one tab

    am trying to create vertical drop down but it only works well for the first tab.
    the HTML
    Code:
    <div id="wraper">
     	<ul class="tabs">
        	<li>
                    <ul id="tab_ul">
                <li><a href=# onmouseover="javascript:showlayer('ul1')">HOME</a></li>
                   <ul id="ul1" class="subtab_ul1">
    ...
    See more | Go to post

  • Scripts working fine on my machine but error: object required , on older desktop

    i built a shopping software for a customer its working perfectly on my system but when i transferred to my customer's old desktop system this script throws error "object required" i tried Flock browser no error but no output here is my script below
    Code:
       if (req.status==200) { 
    				  
                        xmlResponse = req.responseXML; 
    					xmlElement  = xmlResponse.documentElement;
    					//alert(
    ...
    See more | Go to post

  • Sorry i ve to use this means but its related to my problem

    my form is submited even if my onsubmit function returns false

    for example
    Code:
    function validdata(){
     alert('no success');
     return false;
    }
    
    <form method='post' action='somefile.php' onsubmit='validdata();'>
    <input type='text />
    <input type='submit'/>
    </form>
    ...
    See more | Go to post

    Leave a comment:


  • Sorry i ve to use this means but its related to my problem

    my form is submited even if my onsubmit function returns false

    for example
    Code:
    function validdata(){
     alert('no success');
     return false;
    }
    
    <form method='post' action='somefile.php' onsubmit='validdata();'>
    <input type='text />
    <input type='submit'/>
    </form>
    ...
    See more | Go to post

    Leave a comment:


  • freefony
    replied to GD library not displaying image
    in PHP
    somebody please reply
    See more | Go to post

    Leave a comment:


  • freefony
    started a topic GD library not displaying image
    in PHP

    GD library not displaying image

    am trying to use GD library it shows an empty img box on the browser showing that the imagecreate function and the http header are working but the img is empty showing no other function is working i ve tried on my friends computer and it worked so my codes are right but am guess its something with my configuration i need help i ve checked phpinfo() and my setting seems to be ok compared with what i see on the internet

    GD Support ...
    See more | Go to post

  • freefony
    started a topic multiple framset referencing

    multiple framset referencing

    i ve got this frameset
    Code:
    <frameset rows="*" cols="310,*" frameborder="no" border="0" framespacing="0">
      <frame src="input.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
      <frameset rows="91,*" cols="*" framespacing="0" frameborder="no"
    ...
    See more | Go to post

  • freefony
    replied to parsing php array to javascript
    in PHP
    even with the toString function above javascript still sees my php_array as just on element of the list array what can i do to solve that problem?
    See more | Go to post

    Leave a comment:


  • freefony
    replied to parsing php array to javascript
    in PHP
    Ok guys! i got working
    Code:
    <?php
    $qry="select * from stock";
    $rst=mysql_query($qry) or die("Error in Query.".$qry." ".mysql_error());
    while($row=mysql_fetch_assoc($rst)){
    	$item=$row['item'];
    	$list[$item]=$row['price'];
    }
    ?>
    <script type="text/javascript" language="javascript">
    var list=new Array('<?php echo json_encode($list);
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...