www.webdeveloper.com
Results 1 to 4 of 4

Thread: What URL should look like?

  1. #1
    Join Date
    Jun 2012
    Posts
    19

    What URL should look like?

    I would like to know based on following coding, what URL should look like for submit?
    http:\\...&endSym="win"&split=";"& here?
    Does anyone have any suggestions?
    Thanks in advance for any suggestions

    ...
    End line: <select size="1" style="width:73px;" name="endSym" >
    <option value="win" selected>windows</option>
    <option value="unix">unix</option>
    </select>
    Split by:
    <select size="1" name="split" style="width:45px;">
    <option value="tz" selected>;</option>
    <option value="coma">,</option>
    <option value="tab">tab</option>
    </select>
    <input type="submit" value="Get Data" class='button'>...

  2. #2
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    What exactly are you talking about?
    Is this a part of a "form"?
    If so, you'll need a (server side) .php file to "process" the form. For example:
    Code:
    <form action="feedback.php" method="post">
    There is no URL in the submit.
    For more info:
    http://www.freecontactform.com/email_form.php
    Best wishes,
    Adninjastrator

  3. #3
    Join Date
    Apr 2012
    Posts
    16
    I am not getting your question exactly. Clearly specify what you want to design.

  4. #4
    Join Date
    Mar 2012
    Posts
    1,505
    The URL (of the script to process the form data) should be whatever you want!!! E.g.

    1. Suppose the form is in a file called "index.php" and you want it to process the form data itself, the syntax would be:
    <form action="index.php" method=post>

    2. Suppose the form is in "index.html" and the data is to be processed by a separate file "sender.php" which is in a child directory "process", the syntax would be
    <form action="process/sender.php" method=post>


    I.e. It all depends upon the name of the file containing the php script, and where it is located with respect to the file containing the form. Note: Relative paths are preferred because they work off-line for development as well as on-line live.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles