HTML - Checkbox Values In Session, Post When The User Comes Back To The Same Page
Hi all,
I have a form with 4 pages, there are few checkbox in the 2nd page. The problem here is when the user fills in the 2nd form and moves on to the 3rd form, and in case if he comes back to the 2nd form using the back button on the browser, then how can i automatically check the checkboxes the user has already checked in the 2nd page of the form. Thanks James NT Similar TutorialsHey guys, so right now i have a page that has some basic info and i have added a text box so the user can enter his/her name and a text box where they can enter in comments after hitting the submit button i want to post back the data the user entered into the text boxes to the SAME PAGE (indexJS.html) Right now after the user hits submit the page reloads but the data never is displayed. Can someone please tell me what i am leaving out or doing wrong Here is my code: Code: <html> <head> <title>My Page</title> <link rel="stylesheet" href="one.css" type="text/css"> <script src="tricks.js"></script> </head> <body> <div id="section2"> <h2>Add some comments</h2> <form action="indexJS.html" method="POST" id="eventform"> <table> <tr> <td class="name">Name:</td> <td> <input type="text" name="name" id="name"/> </td> </tr> <tr> <td class="label">Comment:</td> <td> <textarea name="comment" id="comment"></textarea> </td> </tr> <tr> <td> <input type="Submit" value="Submit button"/> </td> </tr> </table> </form> </div> <?php if( $_POST ) { ?> <ul> <?php foreach ($_POST as $k ) { ?> <li><?php=$k?> <?php } } ?> </body> </html> Hello everybody, I have a problem. I have a listbox in the form and a submit button. the listbox has multiple selection enabled. Im able to select multiple values in the listbox. now when i submit this form, i want all the values selected, how can i do that. regards Mohsin iqbal Yes, I searched, found nothing--- I have a pretty basic Forum. Users must log in to the Forum - from inside the Forum they can log in to their email accounts - it is seamless, it appears to the user that they are still in the Forum site, but they are actually in a different site--- The email client has a 'log out' button - I have code that will return the user to my forum: <script type="text/javascript"> <!-- document.location.href = "http://www.Your_Home_page/"; //--> </script> BUT, this doesn't work for me because it returns the user to the forum HOME PAGE, and they must log in again. In the same situation, if the user logs into the email client, and then rather than clicking on the 'Log Out' button, they hit the browser 'Back' button, it takes them straight back to the forum, without the need to log back in-- I would like to have code behind the 'Log Out' button that will do the same, take them straight back to the forum, not just log them out of the email client. make sense??? Thanks very much for your help!! Hi, Is it possible in HTML to have a link that takes you back to the previous page you visited. But here's the catch....i want the back link on my pages to behave exactly as the BACK button in Internet Explorer (hope that makes sense). I have a link on my pages which is this: <font size="2"><a href="javascript: window.history.go(-1)">BACK</a></font> but this works in such a way that if you go to Page1, then Page2, then Page 3, then you click on BACK in page3...that takes you to Page2...if you then click on the BACK link on Page2, it takes you back to Page 3...when in fact I want it to go to Page 1.... Please urgently help. Thanks Hello; I have text box & submit button in page_1 & I have text box & submit button in page_2. I want when write text in text box in page_1 it go directly to text box in page_2 & I want when click on submit button in page_1 it is like click on submit button in page_2. Assume page_2 located in other site www.page_2.com. How to do that.?? Hi Guys, Strange problem. I have a simple webform where users can fill in text and check/uncheck some checkboxes. When this is printed to pdf or paper (or print preview) in IE (7 or 8) the checkboxes are printed unchanged. E.g. user sets a check, this is printed unchecked ... or with a pre-checked box with the user unchecked, is printed checked. Same goes for the radio. Only when I remove the DocType completely, IE prints it correctly. But I need to use XHTML-strict. This is a simple example which fails in IE: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl-NL"> <body> <input type='checkbox' name='y'/><br/> <input type='radio' name='x'/><br/> </body> </html> Doesn't work with any doctype I tested (loose or html4). Anyone a idea how to solve this? Many thanks, Michael Hello, I dont know if someone had the same problems, but it seem to me that it is quite common. For a service I would offer my visitors to log in or register... Then after registering or logging in I would like to direct them back to the page where they had been diverted from. And the number of steps and the page are not always the same. Is there a way to "remember" the page name when click on register or login and at the end of the reg/log process go back there? Thanks Attila Any suggestions on the best way for me to put a rather large document on the web? It will have about 500 pages, looks like. Comes in 22 chapters of varying sizes. Currently all the pages are .jpg pictures. Html menu tree to chapters then sections then pages? Or just html links in a similar fashion - with thumbnails maybe? Or should I make one or more .pdf 's ? Or should I/could I put it in an SQL database and serve it up from there? ( A bit unlikely, I think - I don't get that much room with my host and I don't want to pay for more - but if it turns out to be the solution of choice I'd maybe go for it.) Or what? I am working on a page at the moment and I am trying to figure out the best way to let the user know what page they are on. For example... if they click services... maybe the leftnav would go Bold or I could write services on the Top of the page? I was wondering if I could edit the CSS to automate this? I doubt you can do this but just in case here is my css Code: body { margin:10px; background-color:#f0f0f0; font-family:verdana,arial,helvetica,sans-serif; font-size:18px; } #container { width:776px; margin:auto; background-image:url(../images/container-white-bg.png); box-shadow:#333 15px 15px 30px; } #banner { display:block; width:760px; height:120px; padding:8px 8px 0 8px; background-color:#066; } #top-nav { width:768px; height:81px; padding:8px 0 8px 8px; margin:0; list-style-type:none; background-color:#066; } #top-nav li { float:left; margin-right:8px; } #top-nav a,#top-nav span { position:relative; display:block; width:120px; height:81px; } #top-nav span { position:absolute; top:0; left:0; background-image:url(../images/gallery-banner.png); } #mcad {background-position:-8px -8px;} #nios {background-position:-134px -8px;} #moad {background-position:-260px -8px;} #scad {background-position:-386px -8px;} #clou {background-position:-512px -8px;} #what {background-position:-638px -8px;} #nav { float:left; width:120px; padding:0 8px; margin:0; list-style-type:none; background-color:#066; } #nav li { margin-bottom:2px; } #nav a { display:block; width:120px; padding:30px 0; font-family:arial,sans-serif; font-size:90%; font-weight:bold; color:#033; text-align:center; background-color:#699; } #nav a:visited { color:#000; } #nav a:hover { color:#fff; } #content { float:left; width:610px; padding:25px 15px 10px 15px; } #content p { margin:0 0 10px; font-size:90%; color:#000; } #services { font-size:110%; color:#000; } .text-indent { text-indent:20px; } .padding-bottom { padding-bottom:16px; } #footer { clear:both; line-height:30px; color:#000000; text-align:center; background-color:#066; } and here is an example page Contact us Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>MESH, Inc. - Contact us</title> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <div id="container"> <img id="banner" src="images/topbanner.png" alt="top banner"> <ul id="top-nav"> <li><a href="mcad_project.html">mcad<span id="mcad"></span></a></li> <li><a href="niosh_project.html">niosh<span id="nios"></span></a></li> <li><a href="mcad_project.html">mcad<span id="moad"></span></a></li> <li><a href="mcad_project.html">mcad<span id="scad"></span></a></li> <li><a href="cloud_mapping.html">cloud<span id="clou"></span></a></li> <li><a href="#">what<span id="what"></span></a></li> </ul> <ul id="nav"> <li><a href="home.html">Home</a></li> <li><a href="products.html">Products</a></li> <li><a href="services.html">Engineering Services</a></li> <li><a href="projects.html">Projects</a></li> <li><a href="publications.html">Publications</a></li> <li><a href="contact_us.html">Contact Us</a></li> <li><a href="about_us.html">About Us</a></li> </ul> <div id="content"> <p>If you would like to get in touch with us about the services we can offer, please email us</p> <p> </p> <p>For general enquiry <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></p> <p> </p> <p>For business development <a href="mailto:meshengineering@meshoxford.com">meshengineering@meshoxford.com</a></p> <p>or call us at 610-932-7754 </p> <p>MESH is located on 114 Barnsley Road, Oxford , PA 19363</p> <p> </p> </div><!-- end #content --> <div id="footer">Contact Us via phone 610-932-7754 or email <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></div> </div><!-- end #container --> </body> </html> Thank you in advance M HI, I just started here... like two minutes ago. I NEED help on getting a form to automatically post to a page on my website. So, i'm making a class website, right, and I need my teacher to be able to post stuff on a page and have it erase what was already on there (every week). My teacher does not know html, so I would like to have a text box automatically edit the page, I am a medium web designer... but I do not know ANYTHING about this, I have searched EVERYWHERE and couldn't find ANYTHING. It got so annoying that I gave up for about 6 months... until today, which is why I'm asking this. By the way, I would also like "Contact us" forms to go directly to my email, WITHOUT any CRAPPY websites (like the one I'm using now) any help would be very appreciated!! Hello. I have a website all based in php-fusion, and before it, I had one based on php-nuke on the same address. Since I upgraded, every user who was automatically logged in the old site, when visits the new page, get a error message, because php-fusion is searching in his cookies info witch is mismatched, because it were made by Php-Nuke. So, I wanna create a welcome page, all in HTML, telling the user about the error and also telling him how to erase the mismatched cookies, and when he click in "proceed to home page", the site saves a cookie in his computer, and when he visit the page again, he will be automatically redirected to the home page. How can I do that? Hopefully this is something relatively simple. I am trying to make a page that contains a table that users can log into and add rows of information to the table. 1)How would I go about creating an editable table. 2)How would I go about saving the updates to the webpage so their changes appear the next time they log in. I was thinking this might have something to do with some PHP coding to write the changes but not sure. Thanks for all your help Hi, I'm new here and need a simple question answered: I have a store I am putting online, the store resides in a folder under the main folder so I need to have the index.htm in the main folder redirect the user to the index.htm in the store folder. I'm a bit rusty on my html skills, CRS is begining to raise it's ugly head, and can't for the life of me remember how to do it or find a reference to it. Hi, i'm an expereinced PC user, and am just getting into web design, thought you could help. I've got the basics of a website developed, i just need to get the difficult bits done now...just! I've split it up into two points... a) Basically I want users to add a page that I haven't got on my site, (for example, if my website was about bands, one could fill in a form with the title of the band and a few pieces of info. and then that information is taken and a page is created (the page has standard information the same as the rest of the pages, but the details the user entered are on the page)). b) Secondly I want to add to a page a text box one can type into, click submit (basically a review) and that typing be added to that page. I'm assuming some sort of database would be required, but im really not sure how to go about it. Any help would be great Many thanks Is this possible? I remember seeing this somewhere but I don't really remember how to place the info in the address. Is it something like http://test.com@username:password ? Thanks! Is there a way I can load a page (with a text informing that 'you need flash player to view this web') if he doesnt have it installed in his browser? How would I do this? Your help is greatly appreciated. hello, I'm working on a site with a lengthy online application. When a user begins the application he is told to use the back and forward buttons on our form (not on his browser). We find that users still accidentally use the browser buttons and when they do a "Webpage has expired" error page comes up. This error page is not part of our site and is a dead end. I'm not a programmer so I don't know the specifics. I take it as a given that that browser buttons cannot function normally in our application, but I'd like to know if there is a way to get control of the error page that comes up when users do click their browser buttons. If we can show them a page reminding them not to use the browser buttons and put a link there to get them back to the application it would be a big help. Thanks HI everyone, I am in process of creating a sample page. I need to pass values from one HTML page and i should get those values in other page. For example i have used two sample pages like, sample.html l<html> <head> <title> My first page </title> </head> <body> <a href="sample1.html" id="1001">Welcome to html </a> </body> </html> sample1.html <html> <head> <title> My second page </title> </head> <body> <a href="sample1.html">Sample HTML page values came here</a></body> </html> I have used those two sample pages and i need to get the value of id="1001" in sample 1.html page could anyone help me to solve this problem. Thanks in advance Regards, Martin Hello all mates! I am working with my forum trying to properly edit the html for the posts so that they will display any custom script/html of my choice. I want this to appear in ONLY the first post in every thread. I am also trying to find out how to make a bot that automatically posts another second post in every thread, with my own custom scripts/html. At the moment I am trying to add some adsense ads this way. What I am looking for is two things: 1 - How to get the adsense ad aligned to either right or left of the text within the first post. 2 - How to get an adsense bot autopost an ad as post number 2 in any thread (including being applied to all threads already existing) I am using IPB3. I previously used Adsense Bot for IPB2, and that worked fine, but it is not supported for IPB3. It uses the Universal Mod Installer, and in IPB3 there is a new "hook" feature to ass custom mods etc, but I do not know how to alter the code for the Adsense Bot to work with IPB3 so I am trying to get it done from scratch by adding codes directly into the templates. If anyone know how to configure / modify the old Adsense Bot to work with IPB3 that would be great of course, so I am attaching it here just in case someone wants to take a look at it and its documentation and scripts. But primarily I am looking for the two mentioned features, one is how to get the script running in ONLY the first post of every thread - at the moment I got it running, but it is global and implements into all posts not only the first. I also have figured out how to make a script appear, such as an ad, between posts, but not after ONLY the first post, nor how to make a bot that posts a post just like any member, which is what I am really looking for when it comes to that part. This is the code I have entered into the topicViewTemplate in Topic View: Code: {parse template="aip" group="topic" params="$post"} <div style="display:block;float:right;margin: 0px 10px 0px 0px;"> <script type="text/javascript"><!-- google_ad_client = "pub-3737464431076938"; /* forum posts large recnt */ google_ad_slot = "6548059149"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> This works perfectly for adding my desired custom script embedded within the posts. The problem is that it gets embedded in ALL posts and not only the first as I would want. Here is a link to my forum for an example on how it looks: http://www.conspiraciesforums.com/fo...ic/3-atlantis/ I know I have to edit/add some code regarding post counts etc to configure it to only affect the first post - my question is how to do that? And as seen, the second post shows the ad as well, here I would want a bot to post a post containing another ad - between the first and third post of every thread (which will be standard members posts). I have messed my brain with this for more than a week now trying different things, looking around at forums, googling, trying scripts and so on, mods etc, but as of yet have not found the solution to these things for IPB3. Any help here would be extremely greatly appreciated and I'll buy you a beer if you're ever around my part of the world! :p Thanks and bless you! -M I have another question. If you look at my main page he http://www.bestsellersworld.com On the section called "What's New", I have a book cover called "Should Old Acquaintance Be Dead". I would like to move that cover more over to the right. I have align="right" but it does not move over. How can I do that? Thanks. |