List/menu data passing

Im sure this is an easy one but it has me stumped. Here is
the scenario:
I have a couple list/menu boxes that allow mulitple
selections. I process a few other items through a php script that
sends an e-mail out to a specified e-mail address. Everything works
as planned except I only get the last item selected in the
list/menu boxes all the way through to the e-mail.
I have tried adding the ' [ ] ' syntax as discussed in a few
other articles but have not been able to get this to work.
Can anyone offer any help? I would be more than glad to
explain myself further or attach some code. Thanks in advance!
Sean

Ok I got the fix.
I added the '[ ]' on the variable in the form, so the code
looks like this:
<select name="email[]" size="4" multiple id="email">
<option value="1 Accounting">1
Accounting</option>
<option value="1 Adjustments">1
Adjustments</option>
</select>
Then I went to the script that processes the form and change
my variable definitions to this:
$FTGemail = implode(',',$_POST['email']);

Similar Messages

  • How do I pass a username form variable from a drop down list/menu to another page?

    Hi,
    I have a login_success.php page that has a drop down list/menu (which lists usernames). I want the user to click on their user name, and when they click the submit button the username information to be passed over to the username.php page which will contain a recordset, sorted by username.
    How do I pass the username info from the drop down list/menu to the username.php page?
    The drop down menu is connected to a recordset listUsername, I have filtered the recordset with the Form Variable = username, and I have used the POST method to send the username to the page username.php. I'm not sure how to structure the php or which page to place it on.
    <form id="form1" name="form1 method="post" action="username.php">
         <label for="username_id">choose username:</label>
         <select name="username_id" id-"username_id">
              <option value="1">username1</option>
              <option value="2">username2</option>
              <option value="3">username3</option>
              <option value="4">username4</option>
         </select>
         <input type="submit" name="send" id="send" value="Submit" />
         <input type="username" type="hidden" id="username" value="<?php echo $row_listUsername['username']; ?>" />
    </form>
    Could somebody help me please?
    Thanks.

    I would not post the variable over, In this case I personally would send it through the URL and use the $_GET method to retreve it. For Example.
    <html>
         <head>
              <title>Test Page</title>
              <script type="text/javascript">
                   function userID(){
                        //var ID = form1.userIDs.selectedIndex;
                        var user = form1.userIDs.options[form1.userIDs.selectedIndex].value;
                        window.location = "test.html?userID=" + user;
              </script>
         </head>
         <body>
              <form id="form1">
                   <select name="userIDs" id="userIDs" onchange="userID();">
                        <option>Select a User</option>
                        <option value="1">User 1</option>
                        <option value="2">User 2</option>
                        <option value="3">User 3</option>
                        <option value="4">User 4</option>
                   </select>
              </form>
         </body>
    </html>
    //PAGE TO RETRIEVE THE USERNAME
    <?php
    if(isset($_GET['userID'])
         $userID = $_GET['userID'];
         echo $userID;
         die;

  • Ensure List/Menu populate my update form with the correct data before update

    Hello,
    Please how do I ensure my update form is populated with the correct data before update?
    On my update page I have text fields and select fields (dynamic list/menu). When I open my profile page to make updates, I see the field well positioned in the text fields but in the select list/menu fields, I see "Select from list" instead of the value that was initiated selected
    Correct Values before update
    Wrong values during update
    As you can see from the images below, when I open the update page, the list automatically populate the select fields with the last values in the list instead of the Initial values that where selected by the user before the update.
    Can anyone please review and let me know where I have gone wrong.
    Thank you
    Mike

    Hello All,
    Once more thank you. I have sorted the issue out.
    I observed that I was selecting the wrong field. I selected the field matching the record set of the select instead of the field matching the record set of the table I am working as seen on the image belew
    I was selecting this - This is the record set of the table that hold values for the city select list
    Instead of this. This is the record set of the table behind the form I am working on
    My issue is now re-solved.
    Mike

  • List/menu options from database

    Hello
    I need help trying to populate 2 list/menu with some database information.
    Let's suppose that this is my table:
    Id
    Brand
    Model
    1
    ford
    f1
    2
    citroen
    c1
    3
    citroen
    c2
    4
    citroen
    c3
    5
    toyota
    t1
    6
    toyota
    t2
    7
    volvo
    v1
    I have 2 list/menu. One is  the brand menu, which extracts the values  in the brand column of the database (using the DISTINCT statement in MySql). So when you click the menu, these options appear:
    ford
    citroen
    toyota
    volvo
    The  code for that menu is something like  this:
    <select name="menu_marque" id="menu_marque">
    <option value="null">select</option>
    <?php do {  ?>
    <?php
    print '<option  value="'.$row_marque_recordset['marque'].'">'.$row_marque_recordset['marque'].'</option>' ;
    ?>
    <?php } while ($row_marque_recordset =  mysql_fetch_assoc($marque_recordset)); ?>
    </select>
    Now,  I want to do the same for the model menu.  The problem is that I don't know how to write in the Sql, that it  should take the selected value of the brand menu.  I have something like this:
    SELECT modele FROM test WHERE marque  = 'colname' ORDER BY modele ASC
    (where colname is:  $_POST['menu_marque']..... Obviously I am not getting the value by a  POST method, but I tried changing it to something like:
    menu_marque.selectedIndex
    but  it doesn't work...... Any tips on how can I solve this

    Hi DanielAtwood,
    Thanks for your reply...
    Actually when i send the variable in 'WHERE Clause' in Db Adapter query it will retrieve more than one record as the output.
    I want to put that values to a 'SelectOneChoice' component and list down all the values..
    First I tried with data control. But i couldn't find the way to pass the value to the variable(in WHERE clause) to the query in data control view.
    Thanks,
    Nir

  • Autocomplete popup list menu

    Hi,
    I am impressed by the autocomplete feature when I type in text editor of the netbeans. You know, when I type javax.swing. then I wait for seconds, or press Ctrl-Space, it will popup menu. The popup menu will offer me some word to complete the word "javax.swing.", maybe word like border, JTextField, JTable. So you just press arrow to choose the word. Very convenient. How do I make that kind of popup menu but this time I want to make in cell of the jtable. So if I type something in cell of the jtable, it will check the word I type and popup autocomplete list menu with scrollpane too according the word I type. If I type "wel" then it will offer word "come".
    Thank you.
    Regards,
    akbar

    Hello.
    I have something that might help you. Here is the story : I use IntelliJ IDEA at work and I like very much its auto-completion feature (much better than that of Visual Studio). I like it and use it so much that I often find myself hitting control+space in almost any type text editor.
    At one point, I said to myself : why not exporting the concept to a text editor and enable auto-completion for normal text (not just code). This is why I coded the following class (and later completely forgot about it until now).
    It requires a lexicon file containing the words subject to auto-completion. You can easily modify it and pass a String[].
    Hope it'll help you.import javax.swing.*;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.JTextComponent;
    import javax.swing.event.DocumentListener;
    import javax.swing.event.DocumentEvent;
    import javax.swing.border.BevelBorder;
    import javax.swing.border.CompoundBorder;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    import java.util.Set;
    import java.util.TreeSet;
    import java.util.Iterator;
    * <dl>
    * <dt><b>Creation date :</b></dt>
    * <dd> 8 oct. 2003 </dd>
    * </dl>
    * @author Pierre LE LANNIC
    public class PowerEditor extends JPanel {
         private Set theSet;
         private WordMenuWindow theWordMenu;
         private JTextComponent theTextComponent;
         private Window theOwner;
         private static final char[] WORD_SEPARATORS =
                   {' ', '\n', '\t', '.', ',', ';', '!', '?', '\'', '(', ')', '[', ']', '\"', '{', '}', '/', '\\', '<', '>'};
         private Word theCurrentWord;
         private class Word {
              private int theWordStart;
              private int theWordLength;
              public Word() {
                   theWordStart = -1;
                   theWordLength = 0;
              public void setBounds(int aStart, int aLength) {
                   theWordStart = Math.max(-1, aStart);
                   theWordLength = Math.max(0, aLength);
                   if (theWordStart == -1) theWordLength = 0;
                   if (theWordLength == 0) theWordStart = -1;
              public void increaseLength(int newCharLength) {
                   int max = theTextComponent.getText().length() - theWordStart;
                   theWordLength = Math.min(max, theWordLength + newCharLength);
                   if (theWordLength == 0) theWordStart = -1;
              public void decreaseLength(int removedCharLength) {
                   theWordLength = Math.max(0, theWordLength - removedCharLength);
                   if (theWordLength == 0) theWordStart = -1;
              public int getStart() {
                   return theWordStart;
              public int getLength() {
                   return theWordLength;
              public int getEnd() {
                   return theWordStart + theWordLength;
              public String toString() {
                   String toReturn = null;
                   try {
                        toReturn = theTextComponent.getText(theWordStart, theWordLength);
                   } catch (BadLocationException e) {
                   if (toReturn == null) toReturn = "";
                   return toReturn;
         private class WordMenuWindow extends JWindow {
              private JList theList;
              private DefaultListModel theModel;
              private Point theRelativePosition;
              private class WordMenuKeyListener extends KeyAdapter {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                             onSelected();
              private class WordMenuMouseListener extends MouseAdapter {
                   public void mouseClicked(MouseEvent e) {
                        if ((e.getButton() == MouseEvent.BUTTON1) && (e.getClickCount() == 2)) {
                             onSelected();
              public WordMenuWindow() {
                   super(theOwner);
                   theModel = new DefaultListModel();
                   theRelativePosition = new Point(0, 0);
                   loadUIElements();
                   setEventManagement();
              private void loadUIElements() {
                   theList = new JList(theModel) {
                        public int getVisibleRowCount() {
                             return Math.min(theModel.getSize(), 10);
                   theList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                   theList.setBackground(new Color(235, 244, 254));
                   JScrollPane scrollPane = new JScrollPane(theList, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
                   scrollPane.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
                   setContentPane(scrollPane);
              private void setEventManagement() {
                   theList.addKeyListener(new WordMenuKeyListener());
                   theList.addMouseListener(new WordMenuMouseListener());
              private void onSelected() {
                   String word = (String)theList.getSelectedValue();
                   setCurrentTypedWord(word);
              public void display(Point aPoint) {
                   theRelativePosition = aPoint;
                   Point p = theTextComponent.getLocationOnScreen();
                   setLocation(new Point(p.x + aPoint.x, p.y + aPoint.y));
                   setVisible(true);
              public void move() {
                   if (theRelativePosition != null) {
                        Point p = theTextComponent.getLocationOnScreen();
                        setLocation(new Point(p.x + theRelativePosition.x, p.y + theRelativePosition.y));
              public void setWords(String[] someWords) {
                   theModel.clear();
                   if ((someWords == null) || (someWords.length == 0)) {
                        setVisible(false);
                        return;
                   for (int i = 0; i < someWords.length; i++) {
                        theModel.addElement(someWords);
                   pack();
                   pack();
              public void moveDown() {
                   if (theModel.getSize() < 1) return;
                   int current = theList.getSelectedIndex();
                   int newIndex = Math.min(theModel.getSize() - 1, current + 1);
                   theList.setSelectionInterval(newIndex, newIndex);
                   theList.scrollRectToVisible(theList.getCellBounds(newIndex, newIndex));
              public void moveUp() {
                   if (theModel.getSize() < 1) return;
                   int current = theList.getSelectedIndex();
                   int newIndex = Math.max(0, current - 1);
                   theList.setSelectionInterval(newIndex, newIndex);
                   theList.scrollRectToVisible(theList.getCellBounds(newIndex, newIndex));
              public void moveStart() {
                   if (theModel.getSize() < 1) return;
                   theList.setSelectionInterval(0, 0);
                   theList.scrollRectToVisible(theList.getCellBounds(0, 0));
              public void moveEnd() {
                   if (theModel.getSize() < 1) return;
                   int endIndex = theModel.getSize() - 1;
                   theList.setSelectionInterval(endIndex, endIndex);
                   theList.scrollRectToVisible(theList.getCellBounds(endIndex, endIndex));
              public void movePageUp() {
                   if (theModel.getSize() < 1) return;
                   int current = theList.getSelectedIndex();
                   int newIndex = Math.max(0, current - Math.max(0, theList.getVisibleRowCount() - 1));
                   theList.setSelectionInterval(newIndex, newIndex);
                   theList.scrollRectToVisible(theList.getCellBounds(newIndex, newIndex));
              public void movePageDown() {
                   if (theModel.getSize() < 1) return;
                   int current = theList.getSelectedIndex();
                   int newIndex = Math.min(theModel.getSize() - 1, current + Math.max(0, theList.getVisibleRowCount() - 1));
                   theList.setSelectionInterval(newIndex, newIndex);
                   theList.scrollRectToVisible(theList.getCellBounds(newIndex, newIndex));
         public PowerEditor(Set aLexiconSet, JFrame anOwner, JTextComponent aTextComponent) {
              super(new BorderLayout());
              theOwner = anOwner;
              theTextComponent = aTextComponent;
              theWordMenu = new WordMenuWindow();
              theSet = aLexiconSet;
              theCurrentWord = new Word();
              loadUIElements();
              setEventManagement();
         public JTextComponent getTextComponent() {
              return theTextComponent;
         private void loadUIElements() {
              add(theTextComponent, BorderLayout.CENTER);
         private void setEventManagement() {
              theTextComponent.addFocusListener(new FocusAdapter() {
                   public void focusLost(FocusEvent e) {
                        theTextComponent.requestFocus();
              theTextComponent.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, InputEvent.CTRL_MASK), "controlEspace");
              theTextComponent.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, InputEvent.CTRL_MASK), "home");
              theTextComponent.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_END, InputEvent.CTRL_MASK), "end");
              theTextComponent.getActionMap().put("controlEspace", new AbstractAction() {
                   public void actionPerformed(ActionEvent e) {
                        onControlSpace();
              theTextComponent.getActionMap().put("home", new AbstractAction() {
                   public void actionPerformed(ActionEvent e) {
                        theWordMenu.moveStart();
              theTextComponent.getActionMap().put("end", new AbstractAction() {
                   public void actionPerformed(ActionEvent e) {
                        theWordMenu.moveEnd();
              theTextComponent.addMouseListener(new MouseAdapter() {
                   public void mouseClicked(MouseEvent e) {
                        super.mouseClicked(e);
                        if (theWordMenu.isVisible()) {
                             theWordMenu.setVisible(false);
              theTextComponent.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.isConsumed()) return;
                        if (theWordMenu.isVisible()) {
                             if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                                  theWordMenu.onSelected();
                                  e.consume();
                             } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
                                  theWordMenu.moveDown();
                                  e.consume();
                             } else if (e.getKeyCode() == KeyEvent.VK_UP) {
                                  theWordMenu.moveUp();
                                  e.consume();
                             } else if (e.getKeyCode() == KeyEvent.VK_PAGE_DOWN) {
                                  theWordMenu.movePageDown();
                                  e.consume();
                             } else if (e.getKeyCode() == KeyEvent.VK_PAGE_UP) {
                                  theWordMenu.movePageUp();
                                  e.consume();
              theOwner.addComponentListener(new ComponentAdapter() {
                   public void componentHidden(ComponentEvent e) {
                        theWordMenu.setVisible(false);
                   public void componentMoved(ComponentEvent e) {
                        if (theWordMenu.isVisible()) {
                             theWordMenu.move();
              theTextComponent.getDocument().addDocumentListener(new DocumentListener() {
                   public void insertUpdate(DocumentEvent e) {
                        if (theWordMenu.isVisible()) {
                             int beginIndex = e.getOffset();
                             int endIndex = beginIndex + e.getLength();
                             String newCharacters = theTextComponent.getText().substring(beginIndex, endIndex);
                             for (int i = 0; i < WORD_SEPARATORS.length; i++) {
                                  if (newCharacters.indexOf(WORD_SEPARATORS[i]) != -1) {
                                       theCurrentWord.setBounds(-1, 0);
                                       theWordMenu.setWords(null);
                                       theWordMenu.setVisible(false);
                                       return;
                             theCurrentWord.increaseLength(e.getLength());
                             updateMenu();
                   public void removeUpdate(DocumentEvent e) {
                        if (theWordMenu.isVisible()) {
                             theCurrentWord.decreaseLength(e.getLength());
                             if (theCurrentWord.getLength() == 0) {
                                  theWordMenu.setWords(null);
                                  theWordMenu.setVisible(false);
                                  return;
                             updateMenu();
                   public void changedUpdate(DocumentEvent e) {
         private String[] getWords(String aWord) {
              aWord = aWord.trim().toLowerCase();
              Set returnSet = new TreeSet();
              for (Iterator iterator = theSet.iterator(); iterator.hasNext();) {
                   String string = (String)iterator.next();
                   if (string.startsWith(aWord)) {
                        returnSet.add(string);
              return (String[])returnSet.toArray(new String[0]);
         private static boolean isWordSeparator(char aChar) {
              for (int i = 0; i < WORD_SEPARATORS.length; i++) {
                   if (aChar == WORD_SEPARATORS[i]) return true;
              return false;
         private void onControlSpace() {
              theCurrentWord = getCurrentTypedWord();
              if (theCurrentWord.getLength() == 0) return;
              int index = theCurrentWord.getStart();
              Rectangle rect = null;
              try {
                   rect = theTextComponent.getUI().modelToView(theTextComponent, index);
              } catch (BadLocationException e) {
              if (rect == null) return;
              theWordMenu.display(new Point(rect.x, rect.y + rect.height));
              updateMenu();
              theTextComponent.requestFocus();
         private void updateMenu() {
              if (theCurrentWord.getLength() == 0) return;
              String[] words = getWords(theCurrentWord.toString());
              theWordMenu.setWords(words);
         private Word getCurrentTypedWord() {
              Word word = new Word();
              int position = theTextComponent.getCaretPosition();
              if (position == 0) return word;
              int index = position - 1;
              boolean found = false;
              while ((index > 0) && (!found)) {
                   char current = theTextComponent.getText().charAt(index);
                   if (isWordSeparator(current)) {
                        found = true;
                        index++;
                   } else {
                        index--;
              word.setBounds(index, position - index);
              return word;
         private void setCurrentTypedWord(String aWord) {
              theWordMenu.setVisible(false);
              if (aWord != null) {
                   if (aWord.length() > theCurrentWord.getLength()) {
                        String newLetters = aWord.substring(theCurrentWord.getLength());
                        try {
                             theTextComponent.getDocument().insertString(theCurrentWord.getEnd(), newLetters, null);
                        } catch (BadLocationException e) {
                        theCurrentWord.increaseLength(newLetters.length());
              theTextComponent.requestFocus();
              theTextComponent.setCaretPosition(theCurrentWord.getEnd());
              theCurrentWord.setBounds(-1, 0);
         private static Set loadLexiconFromFile(File aFile) throws IOException {
              Set returnSet = new TreeSet();
              BufferedReader reader = new BufferedReader(new FileReader(aFile));
              String line = reader.readLine();
              while (line != null) {
                   returnSet.add(line);
                   line = reader.readLine();
              reader.close();
              return returnSet;
         public static void main(String[] args) {
              try {
                   File lexiconFile = new File("./lexicon.txt");
                   Set lexicon = loadLexiconFromFile(lexiconFile);
                   final JFrame frame = new JFrame("Test");
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   JTextPane textArea = new JTextPane();
                   PowerEditor powerEditor = new PowerEditor(lexicon, frame, textArea);
                   JScrollPane scrollpane = new JScrollPane(powerEditor);
                   scrollpane.setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10),
                                                                     BorderFactory.createBevelBorder(BevelBorder.LOWERED)));
                   frame.addWindowListener(new WindowAdapter() {
                        public void windowClosing(WindowEvent e) {
                             System.exit(0);
                   frame.setContentPane(scrollpane);
                   SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                             frame.setSize(500, 500);
                             frame.setVisible(true);
              } catch (IOException e) {
                   e.printStackTrace();

  • Looping through a refcursor to get list of dates as a string

    hi,
    i have a simple procedure which gives me list of from dates and to dates
    i need to get the dates a comma separated dates
    i am not sure if this can be done directly by doing a for loop on the refcursor or i have to fetch it into a record/array and then concatenate with comma or is there anything else that can be done.
    i tried out some stuff like below
    ps help me out
    the procedure that retruns the list of dates is
    CREATE OR REPLACE procedure SALUSER.prm_sp_rpt_payslip_lop_dates(p_empid in int,p_tran_year in int,p_tran_month in integer,o_dates out sys_refcursor)
    as
    begin
    open o_dates for select  to_char(PHL_LOP_FROM,'DD-Mon-YYYY'),to_char(PHL_LOP_TO,'DD-Mon-yyyy')
                     from prm_h_lop
                     where phl_emp_id=p_empid
                       and phl_tran_year=p_tran_year
                       and phl_Tran_month=p_tran_month;
    end;
    /i need my o/p as
    dates :<date1>,<date2>...etcregards,

    Maybe sth. like
    SQL>  var cur refcursor
    SQL>  declare
    cr sys_refcursor;
    procedure prm_sp_rpt_payslip_lop_dates (cr in out sys_refcursor)
    as
    begin
       open cr for select hiredate from emp;
    end prm_sp_rpt_payslip_lop_dates;
    begin
    prm_sp_rpt_payslip_lop_dates(cr);
    open :cur for select 'Dates: ' || column_value dates from xmltable('string-join(//text(), ", ")' passing xmltype(cr));
    end;
    PL/SQL procedure successfully completed.
    SQL>  print cur
    DATES                                                                          
    Dates: 17-Dec-1980, 20-Feb-1981, 22-Feb-1981, 02-Apr-1981, 28-Sep-1981, 01-May-1
    981, 09-Jun-1981, 19-Apr-1987, 17-Nov-1981, 08-Sep-1981, 23-May-1987, 03-Dec-198
    1, 03-Dec-1981, 23-Jan-1982                                                    
    1 row selected.

  • How to get the list of data providers used in a web template?

    I want to find a quick way to retrieve the list of data providers defined in the <object> tag in the Web template. One awkward approach is to parse the entire HTML page for <object> then filter out "DATA_PROVIDER: xxx".
    But is there any method or function call to retrieve the list quickly?
    Thanks!

    Try the function below, pass the item name and get the Data provider for that particular item, you will have to do this for all the items in the template.
    function getDPName(item){
         prop = SAPBWGetItemProp(item);
         var tableHidden=true;
         if (prop != null){
           for(i=1;i<prop.length;i++){
             if (prop<i>[0] == "DATA_PROVIDER")
                   return prop<i>[1]
           }//end for
         }//end if
    }//end function
    Thanks.

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Drop down menu not passing/reading a varaible

    Hi
    i have a drop down list on
    http://www.mantle.co.uk/development.php?ID=1,
    there are 2 different types of projects; developments and
    investments. the drop down lists all the projects (developments and
    investments), so if a user is on development.php and then selects
    an investment project, then he/she should be taken to
    investment.php with the correct investment project loaded up (with
    the use of passing the projID). Each project has a category field,
    so if the user selects an investment project, then i need the drop
    down list to pass the category (from the recordset) to the form
    action and then that will load the correct page (please see code,
    form action section).
    the is problem is that the list is only passing the ID of the
    project, we need it to pass another field (category) too as when
    you select a project i need the user to be taken to another page
    which is dynamically loaded- depends which project the user
    selects.
    hope ive made sense, please feel free to ask me any questions
    as any help would be great.
    here is my code :
    rsOtheDevs:
    $query_rsOtherDevs = "SELECT * FROM tbProjects";
    Form:
    <form action="<?php print $row_rsOtherDevs['category'];
    ?>.php" method="get">
    <label for="menu"></label>
    <p>
    <select id="menu" name="ID" class="dropdown"
    onchange="this.form.submit()">
    <option value="" selected="selected">Jump To Another
    Project</option>
    <?php
    do {
    ?>
    <option value="<?php echo
    $row_rsOtherDevs['projID']?>"><?php echo
    $row_rsOtherDevs['title']?> </option>
    <?php
    } while ($row_rsOtherDevs = mysql_fetch_assoc($rsOtherDevs));
    $rows = mysql_num_rows($rsOtherDevs);
    if($rows > 0) {
    mysql_data_seek($rsOtherDevs, 0);
    $row_rsOtherDevs = mysql_fetch_assoc($rsOtherDevs);
    ?>
    </select>
    <noscript>
    <input type="submit" value="Go" />
    </noscript>
    <label></label>
    </p>
    </form>
    thanks

    What browser are they using? That could be the problem.
    Spry isn't the best route to go with menus anymore (I honestly don't think it ever was to begin with), Adobe no longer supports or develops Spry. You may be better off creating a new menu in CSS or jQuery. There are tons of tutorials online if you look for "css menu" or "jquery accordion menu" with tutorails on how to get them running.
    I don't see any errors jumpiong out at me in your code, except one unrelated one. You have a link to favicon.gif in your head that isn't closed correctly. It needs a /> rather than a standard >. However, Favicons need to be .ico files, a .gif won't work. There's a free Photoshop plug-in to create the .ico file type here: http://www.telegraphics.com.au/sw/ but it can be found in several places online.

  • A simple list menu(!)

    I’m trying to create a simple list menu that will load my .swf file is a scrolling panel. I have played about with Flash 8 a long time ago so im very rusty and getting myself in knots ….
    Here is my attempt can anyone help
    Thanks
    import fl.controls.List;
    import fl.data.DataProvider;
    import flash.net.navigateToURL;
    var defaultMainDisplay:URLRequest = new URLRequest("home.swf");
    // List box info
    var File_list:Array = [
    {label:"Home File", data:home.swf},
    {label:"File 1", data:swf\File1.swf},
    {label:"File 2", data:swf\File2.swf},
    {label:"File 3", data:swf\File3.swf},
    MyList.dataProvider = new DataProvider(File_list);
    MyList.allowMultipleSelection = true;
    MyList.addEventListener(Event.CHANGE, showData):void{
    // I want the selected (data) .swf file to be loaded into a ScrollPalette on the screen replacing the default home.swf
    removeChild(loader);
    var newMainDisplayRequest:URLRequest = new URLRequest(+ event.target.selectedItem.data);
    loader.load(newMainDisplayRequest);;
    addChild(loader);
    mainDisplay.loadMovie("home.swf");

    I thought I might bright it down a level with using frame levels, but without success AGAIN!....
    import fl.controls.List;
    import fl.data.DataProvider;
    var graphic:Array = [
    {label:"Home Page", data:"home"},
    {label:"About", data:"about"},
    {label:"Index", data:"index"},
    myList.dataProvider = new DataProvider(graphic);
    myList.allowMultipleSelection = false;
    myList.addEventListener(Event.CHANGE, showData);
    function showData (event:Event)
    { gotoAndStop (+ event.target.selectedItem.data);
    /// This should make it {gotoAndStop (home, about or index....);}

  • Dynamic list/menu update page

    Hi,
    I am using PHP, Mysql.  MySQL has different tables.  Created list/menu to show data off one of the table that works great and when I select the value and hit the updae button it updates the database correctly.  Problem I am having is that when I go to update the page again, it always defaults to the first value of the drop down list.    I need it to remember the value that was selected.  Hope this explains it well.

    Hi,
    So the first example I am posting is pretty much the same idea as what Gunter wrote, Gunter wrote the way to handle it in dreamweaver.
    This example is what happens in the code after the DW wizard does its thing.
    Right before it submits to the database you can create a session of the value.
    $_SESSION['cat_id'] = $_POST['cat_id'];
    Then use a string compare command to check against the session.
    (If session cat_id is the same as the recordset cat_id value then echo that line as selected)
    <?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>
    Here it is included in your code sample:
    <select name="cat_id" multiple="multiple" size="5" id="cat_id">
              <?php do { ?>
              <option value="<?php echo $row_listCategories['id']?>"<?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>
              <?php
                    } while ($row_listCategories = mysql_fetch_assoc($listCategories));
                      $rows = mysql_num_rows($listCategories);
                      if($rows > 0) {
                          mysql_data_seek($listCategories, 0);
                          $row_listCategories = mysql_fetch_assoc($listCategories);
                ?>
            </select>
    Note that at the top of your page you will need to initiate the session:
    session_start();
    NOTE: This is example takes note that you added the multiple="multiple" tag to your select. If you want it so someone selects two items then after the update you want to call on both select items. (so all they selected is still selected, not just the last item.).
        <select name="select[]" id="select" multiple="multiple">
          <?php do { ?>
          <?php if (is_array($_SESSION['cat_id'])) { ?>
          <option value="<?php echo $row_listCategories['id']?>"<?php if (in_array($row_listCategories['id'], $_SESSION['cat_id'])) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>     
          <?php } else { ?>
          <option value="<?php echo $row_listCategories['id']?>"<?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>
          <?php } ?>     
              <?php
                    } while ($row_listCategories = mysql_fetch_assoc($listCategories));
                      $rows = mysql_num_rows($listCategories);
                      if($rows > 0) {
                          mysql_data_seek($listCategories, 0);
                          $row_listCategories = mysql_fetch_assoc($listCategories);
                ?>
        </select>
    You will probably have to make an adjustment to your database input query to handle the array $_POST['cat_id']. I didnt have time to test that part.

  • List/menu and mysql

    Below is my code. How can I make the month selected in the
    list/menu bring up the dynamic data from the mysql database. I have
    spent hours but no luck.

    Found my own error. Posting here quickly made me see the
    error in my INSERT INTO query.

  • How can validation list/menu

    Hi,
    I am created a form, i want to validation to list/menu (job_code field is mandatory).
    Anybody enter without a Job_code form submission is not happend.
    I am try to validation in dream weaver behavior- validation “field is not display list/menu id”
    please help me code is given below
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              margin-left: 0px;
              margin-top: 0px;
              margin-right: 0px;
              margin-bottom: 0px;
    body,td,th {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {font-size: 10px}
    -->
    </style>
    </head>
    <body>
    <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="header_print.jpg" width="960" height="171" /></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="3"><ul id="MenuBar1" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="#">Home</a>
                  <ul>
                    <li><a href="#">Item 1.1</a></li>
                    <li><a href="#">Item 1.2</a></li>
                    <li><a href="#">Item 1.3</a></li>
                  </ul>
              </li>
              <li><a href="#">Product</a></li>
              <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
                  <ul>
                    <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
                        <ul>
                          <li><a href="#">Item 3.1.1</a></li>
                          <li><a href="#">Item 3.1.2</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Item 3.2</a></li>
                    <li><a href="#">Item 3.3</a></li>
                  </ul>
              </li>
              <li><a href="#">Item 4</a></li>
            </ul>
            </td>
            </tr>
          <tr>
            <td width="16%"> </td>
            <td width="1%"> </td>
            <td width="83%"><form action="careersuccess.php" method="POST" enctype="multipart/form-data" name="frm" class="font">
          <table cellpadding="0" cellspacing="0" border="0" width="99%">
              <tr>
                <td class="body"><strong class="texsmallhead style6">Job Enquiry: </strong></td>
                <td class="body"><div align="left"><img src="pic for web/spacer.gif" width="55" height="1" /></div></td>
                <td> </td>
              </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"><div align="left"></div></td>
                <td> </td>
              </tr>
              <tr>
                <td width="23%" class="textbodyhead"> Position Applied for</td>
                <td width="13%" class="body"><div align="left">:</div></td>
                <td width="64%"><select name="pafor" size="1" id="pafor">
                  <option selected="selected">---Select Postion---</option>
                  <option>General Manager---Job---code: GM_001</option>
                  <option>Senior Manager---Job---code: SM_002</option>
                  <option>PHP Developer</option>
                  <option>Programmer</option>
                  </select>            </td>
            </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"> </td>
                <td> </td>
              </tr>
              <tr>
                <td class="body">Job_Code</td>
                <td class="body">:</td>
                <td><select name="job_code" size="1" id="job_code">
                  <option>-------Select-Job-Code------</option>
                  <option>GM-001- General Manager</option>
                  <option>SM-002-Senior Manager</option>
                </select>
                </td>
              </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"><div align="left"></div></td>
                <td><span class="style1">Job code is mandateory and same as the position applied for</span></td>
              </tr>
            <tr><td style="height:3px"></td></tr>
            <tr>
              <td colspan="3" class="body"><strong class="textbodyhead">QUALIFICATION DETAILS </strong></td>
              </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Graduation</td>
              <td class="body">:</td>
              <td><label>
              <input name="basic_graduation" type="text" id="basic_graduation" size="25" maxlength="30" />
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Post Graduation</td>
              <td class="body">:</td>
              <td><label>
              <input name="PGCOURSE" type="text" id="PGCOURSE" size="25" maxlength="30" />
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td valign="top" class="textbodyhead">Key Skills</td>
              <td valign="top" class="body">:</td>
              <td valign="top"><label>
              <textarea name="skills" id="skills" cols="30" rows="7"></textarea>
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Relevant Experience </td>
              <td class="body">:</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="12%"><select
    style="width: 70px;" name="EXPYEAR" id="expyear" class=""><option
    value="-1" selected="selected">Year</option><option value="99">Fresher</option><option
    label="0" value="0">0</option><option label="1" value="1">1</option><option
    label="2" value="2">2</option><option label="3" value="3">3</option><option
    label="4" value="4">4</option><option label="5" value="5">5</option><option
    label="6" value="6">6</option><option label="7" value="7">7</option><option
    label="8" value="8">8</option><option label="9" value="9">9</option><option
    label="10" value="10">10</option><option label="11" value="11">11</option><option
    label="12" value="12">12</option><option label="13" value="13">13</option><option
    label="14" value="14">14</option><option label="15" value="15">15</option><option
    label="16" value="16">16</option><option label="17" value="17">17</option><option
    label="18" value="18">18</option><option label="19" value="19">19</option><option
    label="20" value="20">20</option><option label="21" value="21">21</option><option
    label="22" value="22">22</option><option label="23" value="23">23</option><option
    label="24" value="24">24</option><option label="25" value="25">25</option><option
    label="26" value="26">26</option><option label="27" value="27">27</option><option
    label="28" value="28">28</option><option label="29" value="29">29</option><option
    label="30" value="30">30</option><option value="31">30+</option></select> </td>
                  <td width="2%"> </td>
                  <td width="76%"><select style="width: 90px;"
    name="EXPMONTH" id="expmonth" class=""><option value="-1"
    selected="selected">Month</option><option label="0" value="0">0</option><option
    label="1" value="1">1</option><option label="2" value="2">2</option><option
    label="3" value="3">3</option><option label="4" value="4">4</option><option
    label="5" value="5">5</option><option label="6" value="6">6</option><option
    label="7" value="7">7</option><option label="8" value="8">8</option><option
    label="9" value="9">9</option><option label="10" value="10">10</option><option
    label="11" value="11">11</option></select></td>
                  <td width="10%"> </td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Your Name</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="yr_name" type="text" class="textfield" id="yr_name" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Your E-mail</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="yr_email" type="text" class="textfield" id="pafor3" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Phone / Mobile</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="ph_no" type="text" class="textfield" id="pafor4" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Street Address</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="str_add" type="text" class="textfield" id="pafor5" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> City / State</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="city" type="text" class="textfield" id="pafor6" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Zip / Postal Code</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="postal_code" type="text" class="textfield" id="pafor7" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Country</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="country" type="text" class="textfield" id="pafor8" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr><td style="height:3px"></td></tr>
            <tr>
                <td width="23%" class="body"><strong class="textbodyhead"> Resume</strong></td>
                <td width="13%" class="body"><div align="left">:</div></td>
                <td width="64%"><input type="file" name="strresume"></td>
            </tr>
            <tr>
              <td colspan="3" class="textbody">Attach only word document (.doc)</td>
              </tr>
            <tr>
              <td colspan="3" class="body"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="28%"><img src="pic for web/spacer.gif" width="240" height="1" /></td>
                  <td width="22%"><input type="submit" value="Send" name="submit" onClick="return validate();"></td>
                  <td width="25%"><input type="reset" value="Reset" name="reset" /></td>
                  <td width="25%"> </td>
                </tr>
              </table></td>
              </tr>
          </table>  
         </form></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    Did you ever resolve your validation issue of the 'Position Applied for ' and 'Resume' fields? If not then the solution is below. I've been busy for a couple of days so couldn't get back to this until now.
    <?php
        if(array_key_exists('submit', $_POST)) {
    $pafor = $_REQUEST['pafor'];
    if (empty($pafor)) {
        $error['pafor'] = "Please select a job vacancy";
    $basic_graduation = $_REQUEST['basic_graduation'];
    $PGCOURSE = $_REQUEST['PGCOURSE'];
    $skills = $_REQUEST['skills'];
    $yr_name = $_REQUEST['yr_name'];
    $yr_email = $_REQUEST['yr_email'];
    $ph_no = $_REQUEST['ph_no'];
    $str_add = $_REQUEST['str_add'];
    $city = $_REQUEST['city'];
    $postal_code = $_REQUEST['postal_code'];
    $country = $_REQUEST['country'];
       $strresume_name=$_FILES["strresume"]["name"];
        $strresume_type=$_FILES["strresume"]["type"];
        $strresume_size=$_FILES["strresume"]["size"];
        $strresume_temp=$_FILES["strresume"]["tmp_name"];
    if($strresume_type=="application/octet-stream" or $strresume_type=="text/plain" or $strresume_type=="application/msword")
    $corrcetFile = "Correct file type"; }
        else {
    $error['$strresume_type'] = "Please select a MS Word file";
    if(!isset($error))
            $message= '
    <table cellspacing="0" cellpadding="8" border="0" width="650">
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr bgcolor="#eeeeee">
                    <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Position Applied for:</strong></td>
                    <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$pafor.'</td>
                </tr>
                <tr>
                <td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Qualification / Details:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"></td>
                  </tr>
                  <tr>
                  <td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Basic/Graduation:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$basic_graduation.'</td>
                  </tr>
                    <tr>
                  <td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Post Graduation:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$PGCOURSE.'</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Skills:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$skills.'</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Your Name:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$yr_name.'</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Your Email:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$yr_email.'</td>
                  </tr>
                   <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Phone/Mobile:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$ph_no.'</td>
                  </tr>
                   <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Street Address:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$str_add.'</td>
                  </tr>
                   <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>City/State:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$city.'</td>
                  </tr>
                   <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Zip/Postal Code:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postal_code.'</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Country:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$country.'</td>
                  </tr>
             </table>
        // MAIL SUBJECT
        $subject = "Career Enquiry Form";
        // TO MAIL ADDRESS
        $to="[email protected]";
        // MAIL HEADERS
        $headers  = "MIME-Version: 1.0\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1\n";
        $headers .= "From: Name <[email protected]>\n";
        // MAIL HEADERS with attachment
        $fp = fopen($strresume_temp, "rb");
        $file = fread($fp, $strresume_size);
        $file = chunk_split(base64_encode($file));
        $num = md5(time());
            //Normal headers
        $headers  = "From:<NINDIYA CAREER ENQUIRY FORM>\r\n";
           $headers  .= "MIME-Version: 1.0\r\n";
           $headers  .= "Content-Type: multipart/mixed; ";
           $headers  .= "boundary=".$num."\r\n";
           $headers  .= "--$num\r\n";
            // This two steps to help avoid spam 
        $headers .= "Message-ID: <".gettimeofday()." TheSystem@".$_SERVER['SERVER_NAME'].">\r\n";
        $headers .= "X-Mailer: PHP v".phpversion()."\r\n";       
            // With message
        $headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
           $headers .= "Content-Transfer-Encoding: 8bit\r\n";
           $headers .= "".$message."\n";
           $headers .= "--".$num."\n";
            // Attachment headers
        $headers  .= "Content-Type:".$strresume_type." ";
           $headers  .= "name=\"".$strresume_name."\"r\n";
           $headers  .= "Content-Transfer-Encoding: base64\r\n";
           $headers  .= "Content-Disposition: attachment; ";
           $headers  .= "filename=\"".$strresume_name."\"\r\n\n";
           $headers  .= "".$file."\r\n";
           $headers  .= "--".$num."--";
        // SEND MAIL
           @mail($to, $subject, $message, $headers);
    fclose($fp);
        header("Location: http://www.bbc.co.uk");
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              margin-left: 0px;
              margin-top: 0px;
              margin-right: 0px;
              margin-bottom: 0px;
    body,td,th {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
    -->
    </style></head>
    <body>
    <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="header_print.jpg" width="960" height="171" /></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td width="16%"> </td>
            <td width="1%"> </td>
            <td width="83%"><form action="form.php" method="POST" enctype="multipart/form-data" name="frm" class="font">
          <table cellpadding="0" cellspacing="0" border="0" width="99%">
              <tr>
                <td class="body"><strong class="texsmallhead style6">Job Enquiry: </strong></td>
                <td class="body"><div align="left"><img src="pic for web/spacer.gif" width="55" height="1" /></div></td>
                <td> </td>
              </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"><div align="left"></div></td>
                <td> </td>
              </tr>
              <tr>
                <td width="23%" class="textbodyhead"> Position Applied for</td>
                <td width="13%" class="body"><div align="left">:</div></td>
                <td width="64%">
                <select name="pafor" id="pafor" onChange="popfield();">
    <option selected="selected" value="">---Select Postion---</option>
    <option value="GM">Gneral Manager</option>
    <option value="AM">Assistant Manager</option>
    <option value="PHD">PHD Developer</option>
    <option>Assist Marketing Executive</option>
    </select><?php if(isset($error['pafor'])) { echo "<span style='color: #C00; padding-left: 10px;'>".$error['pafor']."</span>"; } ?>         </td>
              </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"> </td>
                <td> </td>
              </tr>
              <tr>
                <td class="body">Employee Code</td>
                <td class="body">:</td>
                <td><input type="text" name="emp_code" id="emp_code" value="GM" /></td>
              </tr>
              <tr>
                <td class="body"> </td>
                <td class="body"><div align="left"></div></td>
                <td> </td>
              </tr>
            <tr><td style="height:3px"></td></tr>
            <tr>
              <td colspan="3" class="body"><strong class="textbodyhead">QUALIFICATION DETAILS </strong></td>
              </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Basic/Graduation</td>
              <td class="body">:</td>
              <td><label>
              <input name="basic_graduation" type="text" id="basic_graduation" size="25" maxlength="30" />
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Post Graduation</td>
              <td class="body">:</td>
              <td><label>
              <input name="PGCOURSE" type="text" id="PGCOURSE" size="25" maxlength="30" />
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td valign="top" class="textbodyhead">Key Skills</td>
              <td valign="top" class="body">:</td>
              <td valign="top"><label>
              <textarea name="skills" id="skills" cols="30" rows="7"></textarea>
              </label></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Relevant Experience </td>
              <td class="body">:</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="12%"><select
    style="width: 70px;" name="EXPYEAR" id="expyear" class=""><option
    value="-1" selected="selected">Year</option><option value="99">Fresher</option><option
    label="0" value="0">0</option><option label="1" value="1">1</option><option
    label="2" value="2">2</option><option label="3" value="3">3</option><option
    label="4" value="4">4</option><option label="5" value="5">5</option><option
    label="6" value="6">6</option><option label="7" value="7">7</option><option
    label="8" value="8">8</option><option label="9" value="9">9</option><option
    label="10" value="10">10</option><option label="11" value="11">11</option><option
    label="12" value="12">12</option><option label="13" value="13">13</option><option
    label="14" value="14">14</option><option label="15" value="15">15</option><option
    label="16" value="16">16</option><option label="17" value="17">17</option><option
    label="18" value="18">18</option><option label="19" value="19">19</option><option
    label="20" value="20">20</option><option label="21" value="21">21</option><option
    label="22" value="22">22</option><option label="23" value="23">23</option><option
    label="24" value="24">24</option><option label="25" value="25">25</option><option
    label="26" value="26">26</option><option label="27" value="27">27</option><option
    label="28" value="28">28</option><option label="29" value="29">29</option><option
    label="30" value="30">30</option><option value="31">30+</option></select> </td>
                  <td width="2%"> </td>
                  <td width="76%"><select style="width: 90px;"
    name="EXPMONTH" id="expmonth" class=""><option value="-1"
    selected="selected">Month</option><option label="0" value="0">0</option><option
    label="1" value="1">1</option><option label="2" value="2">2</option><option
    label="3" value="3">3</option><option label="4" value="4">4</option><option
    label="5" value="5">5</option><option label="6" value="6">6</option><option
    label="7" value="7">7</option><option label="8" value="8">8</option><option
    label="9" value="9">9</option><option label="10" value="10">10</option><option
    label="11" value="11">11</option></select></td>
                  <td width="10%"> </td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Your Name</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="yr_name" type="text" class="textfield" id="yr_name" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead">Your E-mail</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="yr_email" type="text" class="textfield" id="pafor3" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Phone / Mobile</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="ph_no" type="text" class="textfield" id="pafor4" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Street Address</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="str_add" type="text" class="textfield" id="pafor5" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> City / State</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="city" type="text" class="textfield" id="pafor6" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Zip / Postal Code</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="postal_code" type="text" class="textfield" id="pafor7" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr>
              <td class="textbodyhead"> Country</td>
              <td class="body"><div align="left">:</div></td>
              <td><input name="country" type="text" class="textfield" id="pafor8" size="25" maxlength="100" /></td>
            </tr>
            <tr>
              <td class="body"> </td>
              <td class="body"> </td>
              <td> </td>
            </tr>
            <tr><td style="height:3px"></td></tr>
            <tr>
                <td width="23%" class="body"><strong class="textbodyhead"> Resume</strong></td>
                <td width="13%" class="body"><div align="left">:</div></td>
                <td width="64%"><input type="file" name="strresume"><?php if(isset($error['$strresume_type'])) { echo "<span style='color: #C00; padding-left: 10px';>".$error['$strresume_type']."</span>"; } ?></td>
            </tr>
            <tr>
              <td colspan="3" class="textbody">Attach only word document (.doc)</td>
              </tr>
            <tr>
              <td colspan="3" class="body"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="28%"><img src="pic for web/spacer.gif" width="240" height="1" /></td>
                  <td width="22%"><input type="submit" value="Send" name="submit" onClick="return validate();"></td>
                  <td width="25%"><input type="reset" value="Reset" name="reset" /></td>
                  <td width="25%"> </td>
                </tr>
              </table></td>
              </tr>
          </table> 
    </form></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </body>
    </html>

  • Stoping "Plesae Select" List/Menu Results from coming through

    Hi there, we have several list/menu's on our website form and
    want to know if theres a way of stopping all the "please select"
    results from coming through?
    "please select" comes through because the user hasent
    selected a result in the list menu.
    Cheers
    Malhyp

    MalRom wrote:
    > Hi there, we have several list/menu's on our website
    form and want to know if
    > theres a way of stopping all the "please select" results
    from coming through?
    >
    > "please select" comes through because the user hasent
    selected a result in the
    > list menu.
    As well as what Gary has suggested, you should always
    validate the input
    being submitted via a form. This can be done client-side with
    Javascript, or server-side with whatever language is
    available. It
    sounds like you can't edit the CGI which processes the form
    data and
    sends it, so do as Gary suggested, or use some client-side
    form
    validation. There are loads of examples online if you google
    for
    "javascript form validation"
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Dreamweaver list/menu in Contribute

    Hello,
    In dreamweaver I have made a form for people to make a
    reservation for a boattrip. In this form you can choose from a
    list/menu to select a specific date for your trip.
    Before, I always updated these dates in Dreamweaver myself.
    But now I'd like the bookingsoffice to do it themselves. Is this
    possible in Contribute? And if so... how?
    Thanks a lot for your support!

    The library items are not editable in Contribute. Regarding menu items if it is a SPRY menu, then it is configurable in Contribute CS5.

Maybe you are looking for

  • HT4623 how do i back up iphone 3 to itunes

    I just bought iphone 5. How do I back up everything to replace on my 5?

  • How to find the local Weblogic path

    If I have multiple Web sites running under WebLogic, how can I get the           real path in my Servlet for one of the sites? getWorkingPath()?           Thanks           From Tom Gerber           

  • How to run web dynpro java application

    I am new to Web dynpro java.    I have created sample application through NWDS. I wanna run the application in server.    please tell me from where I have to download the server and the steps to install the server.    I have installed sap management

  • TS3999 The server responded with an error

    I have tried to amend an entry in Calendar, but when closing the entry it reverts to the previous time (Im trying to keep trtack of my work rota and I did overtime) I get the message. The Server responded with an error Access to "M&S Felixstowe" in "

  • Google and gmail

    For the past three days safari has been hanging when I attempt to use google, gmail in the nav bar or the search bar in safari version. 2. java and cookies are enabled, I've cleared the cache and reloaded or rebooted. Any ideas?