Looks like i have it sussed thank you to all.
HOWEVER :o(
I have two small problems that i cannot solve, and seeing as you are all
gods in my opinion maybe you can help me further before i throw myself out
the window.

I am getting this error when i am taken to the member page after correctly
fill out the form:
Warning: extract() expects first argument to be an array in
/home/.sites/112//New_member.php on line 23

Also even though i am taken into the members area the mysql database is not
updating itself.  Why?

Here is the code for the error message:

$sql = "SELECT name FROM members
                 WHERE username='$logname'";
  $result = mysql_query($sql)
               or die("Couldn't execute query 1.");
  $row = mysql_fetch_array($result,MYSQL_ASSOC);
  extract($row);
  echo "<html>

Thank you for your help i take my hat off to all of you, how you understand
all this is byond me!

Andy


"Andy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Can someone please tell me how i change the following code:
> if (!ereg("^[0-9]{5,5}(\-[0-9]{4,4})?$",$postcode))
>
> to a UK postcode QQ1 1QQ
> When i fill out the form it tells me that the postcode is not valid and i
> think it is because it is in zip code format.
>
> Thank you
>
> Andy
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to