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?

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.

Archived

This topic is now archived and is closed to further replies.

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