Jump to content

passing an ol as a hidden element to a form on the next page


pquery

Recommended Posts

I have a function which makes an <ol> based on users selections. The function displays once on the page fine.

 

I want the option to mail out the results and I'm trying to hide the second instance of the ul by calling the function a second time in either a hidden field, a text field or a text area (either of the second two enclosed by a hidden div). I've tried all three and can't seem to get any of them to work.

 

<div id="profile">
  
  
    <?php profiler(); ?>

</div>

   <form action="craigmail.php" method="POST">  
  <input type="text" name="craigprofile" value="<?php profileTxt(); ?>">
  
</div>  
<p>would you like to send this as a response to a craig's list personal?</p>
   
  <input type="submit" value="Click Here" class="buttonSubmit" /> 
    </form>	  

 

here's the current piece of code that i'm using, but what seems to be happening is it hits the first closing bracket ">" in the code and then makes the rest of the list as normal

 

anyone have any suggestions on how I can pass this through to my mailer page?

Link to comment
Share on other sites

you have some HTML errors:

 

"POST" should be "post" and your input (craigprofile) is not closed this would contribute to getting an "<" on the page.

 

besides you cannot put an OL into a text box/area...

 

use a loop to put each $_POST[''] into it's own respective hidden text area. then display that

 

Jos.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.