pquery Posted December 28, 2007 Share Posted December 28, 2007 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? Quote Link to comment Share on other sites More sharing options...
jos. Posted December 28, 2007 Share Posted December 28, 2007 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. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 28, 2007 Share Posted December 28, 2007 POST should be POST, just as he has it in his method. you have some HTML errors: "POST" should be "post" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.