Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6209311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:57:42+00:00 2026-05-24T05:57:42+00:00

Thanks everyone adding the name to the select tag did the trick. but now

  • 0

Thanks everyone adding the name to the select tag did the trick.

but now the value that is sent trough the post method is something like this

$_document =                   Andres

with lots of blank spaces and i wish to obtain something clean like

$_document=Andres

Any ideas?

I’m having troubles with a variable that needs to be sent through POST method. Heres the code:

 <td>
   <label>Nombre</label><input type="text" id="_name" name="_name" value="<?=$_name?>" class="name" />
   <label>URL</label><input type="text" id="_permalink" name="_permalink" value="<?=$_permalink?>" class="name" />
   <label>Fecha</label><input type="text" id="_date" name="_date" value="<?=date_to_javascript_short($_date)?>" />
   <input type="checkbox" id="_featured" value="s" name="_featured" class="checkbox" <?= $_featured == "s" ? "checked='checked'" : "" ?> /><label for="_featured" class="checkbox">Marcar como relevante</label>

  <label>Carpeta</label>

  **<select>
      <?  $document = process_all("SELECT _document_name FROM _document WHERE _owner = 'Marco Regulatorio' ORDER BY _document_name ");
      if($document) {
       foreach ($document as $item) {
         echo "<option id='_document' value=' ";?>
         <?=$_document=$item[_document_name]?>
         <?echo "'>";
         echo "$item[_document_name] </option>";        
        }
      }
        ?>
      </select>**
   </td>

The $_name, $_permalink and other variables are sent correctly using the post method the one that gives the problem is the one in the select tag, the $_document variable, first to explain is that I get the content for the options tag using a DB, then I set the options that will show using PHP for it but I really don’t get why wont it send the $_document variable using the post method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:57:43+00:00Added an answer on May 24, 2026 at 5:57 am

    The select doesn’t have a name to be sent as.

    Just add a name attribute to the select tag and try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks everyone for helping me, that I get this piece of code, but I
Thanks everyone for taking the time to read this. I have styled my navigation
Thanks to everyone out there helping newbies like me. So far I have this:
Hello and thanks to everyone for reading my question. I've been working on a
This is my first question. Thanks to everyone who contributes to this site, it's
http://min.us/muKpIB16z Is that zsh? Could somebody share the PS1 code to everyone :P? Thank
Thanks to all that responded to my previous thread. There is still a problem
I'm trying to remove a class from a HTML tag along with adding a
(More package/component install fun for me -- thanks everyone for all your help to
I am writing a Cocoa application that I keep adding buttons, views, and layers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.