Jump to content

jodnls

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jodnls's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks so much for the help. Can I now make $newdir all lowercase characters?
  2. Hi, I have a form that asks for the company name. I want php to see it as one word (the Union -- theunion) when inserting it to the database and also to make a new directory. This is what I have now: $query = "INSERT INTO Accounts(business,firstname,lastname,email,contact phone,streetaddress,city,state,zip,country,website ,style,font) VALUES('".$_POST["b_name"]."','".$_POST["f_name"]."','".$_POST["l_name"]."','".$_POST["email"]."','".$_POST["phoneNo"]."','".$_POST["street"]."','".$_POST["city"]."','".$_POST["state"]."','".$_POST["zip"]."','".$_POST["country"]."','".$_POST["website"]."','".$_POST["style"]."','".$_POST["font"]."')"; and $newdir = $_POST["business"]; mkdir("./$newdir", 0755); I just don't know how to make it skip the spaces in the form answers. I have been searching all over for answers. I appreciate any help I can get. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.