User Profile

Collapse

Profile Sidebar

Collapse
Adrock952
Adrock952
Last Activity: Jun 7 '08, 02:21 PM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Any headers has got to be placed before any HTML is output to the screen.

    I used to get that problem but if you place any processing php about the <html> tag, it should work.

    There is a workaround using ob_start() and ob_flush() and the start and end of your document which will get rid of the errors
    See more | Go to post

    Leave a comment:


  • Adrock952
    replied to Geocoding address before adding to database
    in PHP
    I had to do something similar.

    Check out http://www.tomanthony.co.uk/blog/geo...oogle-map-api/

    I had to change the javascript slightly so instead of displaying the latitdue and longitude in an alert box, it put them straight into a text box so when you submit the form, it is saved to the database
    See more | Go to post

    Leave a comment:


  • I would like the text box to change color so they can easily see which text boxes have the errors.

    Basically, the form fields are white until the field fails validation then they are changed color. Once the field is validated it changes back to white.

    If you need to see any more code I can post it.....also I have no errors....i just need to know how to change the color

    Many thanks for your replies
    See more | Go to post

    Leave a comment:


  • Adrock952
    started a topic PHP form validation with highlighted error fields
    in PHP

    PHP form validation with highlighted error fields

    I have a form which validates fine using classes but i would like the fields that have the error to be highlighted a different color

    At the moment I just get a list of errors but would like a field that failed validation changed color.

    here is my code

    validator class
    [PHP]<?php
    class Validator {
    var $errors;

    function Validator($vali dateThis)
    {
    ...
    See more | Go to post

  • How to change the login hyper link to logout when successfully logged in

    I have a link on my site which obviously says "Login" where users log in.

    I would like that link to be changed to "Logout" when the user has successfully logged in and the session has been created and when the user logs out, i would like the link changed back to "Login" without having to refresh the page.

    here is my login page
    [PHP]<?php

    if (is_authed_user ()) ...
    See more | Go to post

  • Adrock952
    replied to integrity constraints problem
    I figured it out last night. It turns out that Oracle doesn't have an ON UPDATE constraint so i deleted that and it worked
    See more | Go to post

    Leave a comment:


  • Adrock952
    started a topic integrity constraints problem

    integrity constraints problem

    I am trying to create my tables where if i delete/update a record from one table, all the other tables are affected by deleting/updating any records that reference the original record.

    For example, if i delete/update a record from the employee table, the other tables that are referenced to it will be updated/deleted

    Here is the database create SQL i have

    Code:
    CREATE TABLE Employee (
      ssn
    ...
    See more | Go to post

  • Adrock952
    started a topic PHP form validation with highlighted error fields
    in PHP

    PHP form validation with highlighted error fields

    I have been trying for ages to work out how to highlight a form field using css when there is an error during validation.

    I have got the form to validate fine but i don't know how to change the background-color of the form element in question.

    I would like for example, if the user has forgotten to enter their email address, the field is highlighted so they know what they have to enter. Any valid fields are left the same...
    See more | Go to post
No activity results to display
Show More
Working...