User Profile

Collapse

Profile Sidebar

Collapse
runway27
runway27
Banned
Last Activity: Dec 29 '09, 02:18 AM
Joined: Sep 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • runway27
    started a topic sending email with php
    in PHP

    sending email with php

    Code:
    <?php
    
    $headers = "Content-type: text/html; charset=iso-8859-1";
    $to="myemailaddress";
    $subject="Email Newsletter";
    
    $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Email
    ...
    See more | Go to post
    Last edited by Atli; Dec 23 '09, 10:27 PM. Reason: Added [code] tags.

  • runway27
    started a topic testing html pages in ie6

    testing html pages in ie6

    hi

    i use a windows vista laptop, i have ie7 and other latest browsers, i need to test how my html pages look in ie6 on my laptop.

    can anyone suggest any solution where in i can test my html pages developed locally on my laptop to see how it will look in ie6 without having to upload my html and css files to any website rather test it locally.

    please advice.

    thanks
    See more | Go to post

  • runway27
    started a topic margin gap in ie7

    margin gap in ie7

    i am having a serious issue with ie 7 i really need help.

    i am using a center layout using 900px the center layout looks and works fine

    in all browsers except for ie7 i have used a border for the wrapper tag.
    what i have noticed only in the case of ie7 is the left border for the wrapper

    tag starts a few pixels 2px or 3px before compared to all other browsers and

    due to this in ie7 the right...
    See more | Go to post
    Last edited by acoder; Feb 15 '09, 02:50 PM. Reason: Please use [code] tags

  • runway27
    started a topic question about using sql server with php
    in PHP

    question about using sql server with php

    i have a question about how to use sql database with php instead of using my sql database

    when i use my sql database the php code to connect to the my sql database is =

    Code:
    $conn = mysql_connect($hostname, $user, $password);
    
    if(!$conn)
    { 
    echo "Unable to connect to Database";
    }
    
    else
    {
    mysql_select_db($database, $conn);
    
    $query = mysql_query($selectquery);
    ...
    See more | Go to post
    Last edited by Markus; Oct 27 '08, 10:25 AM. Reason: added # tags

  • runway27
    started a topic accessing variable value
    in PHP

    accessing variable value

    i need help with accessing the value of a variable from a different page.

    i have an index.php file which has 2 files included to display header and footer and the center portion changes based on the link clicked on the footer.

    header.php

    <?php
    echo "<h2> Text from header.php file </h2>";
    ?>

    footer.php

    <?php
    $title="Title...
    See more | Go to post

  • runway27
    started a topic questions about using include() in php
    in PHP

    questions about using include() in php

    i am doing seo for a website and this website uses a lot of php for which i need suggestions. this is how the website is set up.

    in the index.php file there is a flash banner at the top of the page and the center part is another file which is called using include("links. php") and the bottom part using include("footer .php")

    the footer has links such as = webdevelopment software development ... each...
    See more | Go to post

  • runway27
    started a topic implementing a website search feature using php
    in PHP

    implementing a website search feature using php

    i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword

    or phrase entered by the user.

    following are the steps i want to follow. please advice if i am missing out any steps or i can add any step.

    1. read the keyword entered by user using $search = $_POST["searchkeyw ord"];

    2. read all the files from the root directory...
    See more | Go to post

  • runway27
    started a topic Getting country from IP address
    in PHP

    Getting country from IP address

    i am using $ip= $_SERVER['REMOTE_ADDR'] to retrieve the ip address of the client for example if the value returned from $ip

    is 50.160.190.150

    i would like to find out which country the request has come from. i believe by using the third set of numbers (in this case=190) from an ip address we can find out the country name. i can declare a variable with a list of country names and the range of values, what i need help...
    See more | Go to post

  • runway27
    started a topic question about select tag

    question about select tag

    I would like an option in the select tag not to be selected by default but appear as the first option when the file is loaded. i have used the following code

    <option disabled="disab led" selected="selec ted">Select Category</option>

    however this works in firefox but not in Internet Explorer how can i change the above code to work in both the browsers

    please advice.
    ...
    See more | Go to post

  • runway27
    replied to Validating Username
    in PHP
    validating # sign in php

    my question is about validation using php. i am validating a username which a user would

    enter and clicks on a image to find if that username is available. example if a user enters

    abc#123 php file is reading this value as abc ONLY which i do not want instead the php file

    should read as abc#123. following is the sequence of pages. please advice the solution....
    See more | Go to post

    Leave a comment:


  • runway27
    started a topic sql injection
    in PHP

    sql injection

    i have implemented a way to avoid sql injection from the php website from this url
    http://in.php.net/mysql_real_escape_string from the "Example #3 A "Best Practice" query" section of this page

    following are the steps i have followed after the form values are submitted to a php file.

    step 1.
    [code=php]
    if(get_magic_qu otes_gpc())
    {
    $username = stripslashes($_ POST["username"]);...
    See more | Go to post
    Last edited by Atli; May 30 '08, 06:29 PM. Reason: Added [code] tags.

  • runway27
    started a topic php form validation
    in PHP

    php form validation

    i need to validate a field in a form where a user enters a reference number this can be

    letters, numbers and special characters also so i have not written any special preg match as

    the username is a combination. the only check i am doing is if there are any white spaces

    and if a user simple presses the space bar and does not enter value i display a message to

    enter the reference number...
    See more | Go to post
    Last edited by Atli; May 30 '08, 07:15 PM. Reason: Added [code] tags.

  • runway27
    replied to Validating Username
    in PHP
    validating username

    my question is about validation using php. i am validating a username which a user would enter and clicks on a image to find

    if that username is available. example if a user enters abc#123 php file is reading this value as abc ONLY which i do not

    want instead the php file should read as abc#123. follow is the sequence of pages. please advice the solution.

    first page...
    See more | Go to post
    Last edited by Atli; May 27 '08, 06:57 PM. Reason: Added [code] tags.

    Leave a comment:


  • runway27
    started a topic Validating Username
    in PHP

    Validating Username

    i have used the following code to validate the username it is working fine
    Code:
    if( $username == "" ||  !preg_match("/^[a-z0-9]+(?:_[a-z0-9]+)?$/i", $username) )
    {
       $error.="User name cannot be blank or has special characters";
    }
    it does not accept UNDERSCORE at the beginning or end however while i was testing with different special characters except for # the validation works fine for all other...
    See more | Go to post
    Last edited by ronverdonk; May 26 '08, 02:37 PM. Reason: warning: use code tags!

  • runway27
    started a topic question about select tag in php
    in PHP

    question about select tag in php

    i have two select tags as part of a registration form, city1 city2 where city1 has a list of regions and similar for city2

    there are different regions for city1 and city2 so instead of all the regions appearing one after the other i would like to create a blank option followed by the next set of regions for formatting purpose only.

    ex= [php]
    <select name="city1">
    <option <?php if...
    See more | Go to post
    Last edited by ronverdonk; Mar 31 '08, 09:06 AM. Reason: code tags added!!

  • runway27
    started a topic restricting access to folders on server
    in PHP

    restricting access to folders on server

    i am using apache server and presently when i try accessing any folders of my website i am able to

    browse the files ex = www.website.com/images which is a serious security risk as i am building a

    forum website using php and mysql.

    in the root directory i have created a .htaccess file and whenever someone access a file which is not

    on the server i have created a user friendly message that...
    See more | Go to post

  • runway27
    started a topic question about database injection
    in PHP

    question about database injection

    i am helping a friend to build a forum website which uses php and mysql database. i am working on the registeration page for the forum website and its validation. i am using php 5.2.5

    i am able to validate and do other tasks, however i really need help as i am stuck with regards to database injection.

    please answer the following questions. any help will be greatly appreciated.

    1. USER NAME VALIDATION...
    See more | Go to post

  • runway27
    started a topic passing variables values using POST
    in PHP

    passing variables values using POST

    i am presently passing the value of a variable to a php file using GET after data has been inserted to the database.

    ex=

    $firstname = $_POST["firstname"];

    if(!$sqlconnect ion)
    {
    echo "error message";
    }
    else
    {
    header("Locatio n: thankyou.php?fi rstnameis=$firs tname");
    }

    how can i send the value of $firstname using...
    See more | Go to post

  • runway27
    started a topic relative linking in php
    in PHP

    relative linking in php

    i am using a self submitting for using php
    <form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST" id="test2" name="registrat ionform">

    the registration page starts with a lot of terms and other details about the registration and then the form fields for the user to fill the registration page. i have used php to validate the form, presently when a user clicks...
    See more | Go to post

  • runway27
    started a topic querying 2 databases in php
    in PHP

    querying 2 databases in php

    i am building a registration page where a user register for a username. i am able to insert this into mysql. the situation is every time data is inserted into example table1 in mysql in database1 for example at the same time i would like to extract the username, password and email from table1 based on the last inserted row and insert these values into another table ex table2 in a different database called database2.

    the issue i am...
    See more | Go to post
    Last edited by ronverdonk; Mar 11 '08, 01:35 PM. Reason: last time: enclosing code within code tags
No activity results to display
Show More
Working...