Jump to content

royaltysaab

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

royaltysaab's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, Please can someone help?!?! I need to read the content of a local folder, which contains pdfs and insert all the file names into a database. is this possible? If so can someone point me in the right direction? Thanks
  2. Thanks, working now..... The way i done it is, left the html tables in the php and added hidden input boxes.
  3. Hi All, The AJAX solution works brilliantly (http://www.w3schools.com/ajax/ajax_database.asp)!! Thanks. What i have done is, in my drop down i've got usernames, when 1 is selected a table is displayed, which shows the following information: Firstname (firstname) Surname (surname) Email (email) Login (sername) ID (id) ext (tel) Mobile (mobile) Department (depart) What i want to know is can parse the values from the generated table into another form, when the user hits submit? Can POST the values which are in the table? Or will i have to create text boxes which populate when a value is selected from the drop down list? Hope this makes sense?
  4. Hi All, The AJAX solution works brilliantly!! Thanks. What i have done is, in my drop down i've got usernames, when 1 is selected a table is displayed, which shows the following information: Firstname (firstname) Surname (surname) Email (email) Login (sername) ID (id) ext (tel) Mobile (mobile) Department (depart) What i want to know is can parse the values from the generated table into another form, when the user hits submit? I can POST the drop down list, called users, but not the values of the tables. Will i have to create text boxes which populate when a value is selected from the drop down list?
  5. Thanks for all your replies: Daleeburg- i already through of that - may have to implement it, if the below don't work. boo_lolly - I would like the users to be able to just select a name from the dropdown menu and then immediately have the textbox populate the email. christophe - I'm trying this now, looks very good! I'llet you all know how i get on. thanks again.
  6. Hi, Been trying to do this for a while, but not getting anywhere!! Tried to search for it but nothing. I'm new to PHP so apologies now for errors: Trying to create a form; when the users selects his/her username from the drop down list the textbox below populated the users email address. The information is stored in a MySQL DB called helpdesk_test, table called name userdetails. The table holds: Userid username ufirstname usurname uemail I probably have to code some javascript, but dont know how to! Can someone help please? Thanks My PHP, so far.... <?php /* Get all the required files and functions */ include('connectionstring.php'); $db2=mysql_connect($MySQLServerName2, $MySQLUserName2, $MySQLPassword2); mysql_select_db($MySQLDBName2,$db2); ?> <form method="POST" action="submit_ticket.php" name="form1" enctype="multipart/form-data"> <table border="0" cellspacing="0" cellpadding="5" size="750"> <tr> <td> <!--<input type="text" name="name" size="25" maxlength="30"></td>--> <!-- Contact info --> <table border="0"> <tr> <td align="right" width="150"><?php echo $hesklang['name']; ?>: <font class="important">*</font></td> <td align="left" width="600"><select name="name"> <?php $query = ("SELECT * FROM `userdetails` order by `userid`"); $DatabasecountQuerys = mysql_query($query,$db2); while ($row = mysql_fetch_array($DatabasecountQuerys)) { echo "<option value='$row[0]'>$row[1]</option>"; } ?> </select> </tr> <tr> <td align="right" width="150"><?php echo $hesklang['email']; ?>: <font class="important">*</font></td> <td align="left" width="600"><input type=text name="email" size="50" maxlength="80"></td>
  7. Hi all, I was wondering if this is possible: I've got a simple php helpdesk, what i'm trying to do is add a new field to my "new ticket form".  The new field will be called "Attachement; View & Add".  What I want it to do is; user clicks View and add, automatically opens up the windows clipboard or a php clipboard, user can then click on the image they want and then click add.  When the user completes the form and clicks submit, the image is saved on a folder, when we receive the call notification, or view the call, a link will appear with the attachment locations of image. I've had the <INPUT TYPE="file">, but we've been running for 1 year as a helpdesk function and it only got used 5 times and they were txt files!! Users are not the sharpest! Look forward to your response
×
×
  • 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.