Jump to content


Photo

Post extra string value?


  • Please log in to reply
1 reply to this topic

#1 onnan

onnan
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 April 2006 - 02:51 PM

Hi, this must be an easy one...

I've made an FTP-admin page in Dreamweaver and php that contains a insert record server behavior which works just fine. But in one of the fields users must enter a directory which always starts with /home/ftp/ and ends with the username like, /home/ftp/user. But I want to make this a bit more simple by adding a default string or whatever you call it (I'm a newbie). So that users only have to enter their home directory and not the hole directory tree.

The code for the homedir looks like this now where 'homedir' is a field in my mysql database.

GetSQLValueString($_POST['homedir'], "text"));

Any ideas?

#2 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 18 April 2006 - 08:20 PM

To make it easier on yourself, just put in that /home/dir/ code as the default value in your textbox.
Disclaimer: No matter how harsh I may be, I'm always IMO only.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users