HTML - Session Variables & Ie
Our website works perfectly with Mozilla Firefox, but in IE7 or 8, if a person looks around through the content and then starts over choosing different options, the session variables don't get changed. If the cookies are cleared, then the problem is temporarily solved.
Is there common code that solves this problem for IE? Thanks, mei Similar TutorialsNot sure if this is the right place for this post but fingers crossed... I'm running a website off my home computer and I want to create a login session for users. I want them to be able to register online and have me be able to approve the registration. Any easy way of doing this without buying software? Thanks Sam Hi, I have a hyperlink in one of my application as: a href="/servername/application/Folderjsp/link_to.jsp?person=USERNAME"target="new_sc_window" >Test Link</a> When a Superuser click on one of the Subusers it opens a New window with the Current Username parameter passed.(Via the jsp page). But the problem is when the SUperuser is coming back to his own window, he is being logged out. I know i will not have this problem (in my application ) if clickin on that link opens a NEW Internet Explorer browser window; and then pass the parameters. Is there any workaround. Please suggest. Thanks, JJ I have written an application that, to a degree, should act like a browser - that is, connect to particular web sites to retrieve certain content. Additionally, sessions may need to be maintained. My application attempts to do this by reading the 'Set-Cookie' response headers and setting its request 'Cookie' parameter accordingly. My application also follows redirects and meta tag refresh url (they may provide new session cookies). Despite all that, I keep getting session errors thrown up by the server. Is there anything I could be missing out. I am using HttpTracer, but it isn't giving any clues. Could I be missing anything that may affect the session status? how to maintain session variable or set session variable in html page? Hi, not sure weather this is the right category because it is related to phpBB but I Have tried there forums, with no luck! I think I'm in the right section though. Basically, I am building in the sessions and users of my forum into my personal site. I am using the following script to check if users are logged on: Code: <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../computerhelp/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); ?> Your existing page goes here <?php if ($user->data['user_id'] == ANONYMOUS) { echo 'Please login!'; } else { echo 'Thanks for logging in, ' . $user->data['username_clean']; } ?> I want to redirect visitors to a page on my site if they are not logged on, but can not figure out how to do it. Please can someone help me? can anyone fill me in on how to call a variable from a javascript file? this is what im doing: click a button on a page that is generated from a javascript script--> button redirects to new htm file. new htm page that is loaded needs to know the value of a variable from the script that was run in the previous page before the redirection. sooo: page A is loaded: script loads a button into the webpage user clicks the button: the button performs window.location = "www.somesite.com" somesite.com is loaded but a variable is needed from the script that loaded the original button so that the value held by the variable can be displayed on the page. Any ideas to how I would accomplish this would be greatly appreciated. Thanks I need to display variables on my thank you page from my opt-in page (using Aweber as my autoresponder). They say to display variables use <script>printElement("custom communication")</script> which is fine and displays correctly but I need to include that within a IF/Else statement so I can display a different message based on the variable. Here is my If/Else which does not work - I assume because the extra <script> <script type="text/javascript"> var d = new Date() var time = <script>printElement("custom communication")</script> if (time=='Satisfied') { document.write("<b>Good morning</b>"); } else if (time=='Dissatisfied') { document.write("<b>Good day</b>"); } else { document.write("<b>Hello World!</b>"); } </script> Any help on how I can solve this would be great!!! In a regular form with text fields, can I pass the imput from the user directly into a hidden textarea from multiple fields intertwined with html? Example: <form> <input type="text" name="firstname"> <input type="text" name="lastname"> <input type="text" name="occupation"> <input type="hidden" value="some html + firstname + some html + lastname + some html + occupation"> </form> I think this might require some javascript. Is something like this possible? One product in my shop has multiple sizes and each size has a different price. I would like a drop down menu that lists options like this: Small Shirt - $15.00 Medium Shirt- $20.00 From whatever option is chosen, I need to register both the name(item_name) and price(amount) values with two different fields, like this: input type=hidden name="item_name" value="Small Shirt" input type=hidden name ="amount" value="15.00" Any suggestions? Hey all, I want to have code that will take a user to a site that they specify. For example: John puts 'google' in the input box. The form will then send him to www.google.com. So whatever SITENAME is it goes to www.<whatever it is>.com Any help please? Will I need JavaScript? Code: <form name="input" action="http://www.SITENAME.com" method="get"> <input type="text" name="SITENAME" value="" size="20"> <input type="submit" value="Submit"> </form> Thanks, MacAddikt Hello guys! Let me explain the problem... I have a website full of radios, 12 on total, and all of them have something like this: <object id="Radio01" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject" width="140" height="45" align="middle"> <param name="FileName" value="Link_to_the_stream"> <param name="Autostart" value="False"> <param name="enableContextMenu" value="False"> <param name="ShowControls" value="True"> <param name="ShowDisplay" value="False"> <param name="ShowStatusBar" value="False"> <param name="Volume" value="100"> <embed src="Link_to_the_stream" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" width="140" height="45" align="middle" autostart="0" enableContextMenu="0" showcontrols="1" showdisplay="0" showstatusbar="0" volume="100"></embed></object><br> <b><a href="Link_to_the_website" target="_blank"> Radio_name </a> As the radios are continually going on and off, sometimes I need to switch them. But the html of my website is too long and I would not like to edit it every time I need to switch a radio. I would like to, instead, create an apart document with variables like: Link_to_stream = "http://www.link.com:port/" Link_to_the_website = "http://www.radiowebsite.com/" Radio_name = "Name of the radio" And then make the html call these variables, so if I wish to switch a radio, I would only edit the file... The tricky part would be to edit the object src, I think. Is there any way to do that? Any method? I'm using conventional html on my website. Thanks in advance! I'd like to have a html file where i can pass over the variables from another html file i.e. title = "Image 01" Image = image.jpg description = "image 01 description test" then with a link open the html file with this variables. thanks. I am struggling with a tutorial right now. I have a picture that when clicked on takes the user to another PHP page. At the end of the URL I have added several variables that I send to the new page. Currently the above works. However, I also want to make it so the new window opens in a little pop up window that I can control the size of. I can make that happen, but only if I don't add the variables to the end of the URL. This works <a href="game.php?name=<? echo $gameName ?>&swf=<? echo $swf ?>&width=<? echo $width ?>&height<? echo $height ?>"><img src=<? echo $picture ?> width="310" height="223" border="0"></a> This works <a href="javascript:void(0);" NAME="<? echo $gameName ?>" title="Kesler" onClick=window.open("game.php","Ratting","width=<? echo $width ?>,height=<? echo $height ?>,0,status=0,");><img src=<? echo $picture ?> width="310" height="223" border="0"></a> But combined they do not work <a href="javascript:void(0);" NAME="<? echo $gameName ?>" title="Kesler" onClick=window.open("game.php?name=<? echo $gameName ?>&swf=<? echo $swf ?>&width=<? echo $width ?>&height<? echo $height ?>","Ratting","width=<? echo $width ?>,height=<? echo $height ?>,0,status=0,");><img src=<? echo $picture ?> width="310" height="223" border="0"></a> Anyone know how I go about this? The embedded side of my project is not much of a problem to me, I have background on this. But HTML is a new animal and I am low on the learning curve. I apologize if this is an unlearned question. The attached file is one I cut and pasted together by an eclectic approach . The page layout is a little asymmetric, but has its elements in (close to) the right places. The presentation is nice. It also displays the values from the PIC correctly, but in two different "divisions" of the code. I admit, I don't know s__ from shinola about this. I am just cutting and pasting and trying to follow some general syntax concepts. And I have by utter beginner's luck gotten something that somewhat "works". Referring to line 39 of the attached file, the "display" division, the following 25 paragraphs of type: <p>updateParm0: <span id="updtParm0">?</span></p> Are working correctly and displaying the value associated in the mchp.js file which contains the dynamic variable array. Of course, this printing screws up the placements of all the elements in the large table which follows. But this will ultimately not be a problem, because these paragraphs won't remain in the code. What I would like to accomplish is to remove the 25 paragraphs in the "display" division, and cause the "updtParmXX" values to appear on the page in the placement described by the table layouts. Could someone tell me briefly how to do this? Or if I need a completely different approach? Thanks. PS: the attached .zip file is index.htm in its day job. Blah Blah Blah 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 Hey guys. Thanks in advance for help on this. I am simply (what I think should be simple) trying to carry over answers submitted by a user from one page to the other. For example, using the scripting below on my homepage, truquill.com a user would enter 'Tom Smith'. How do I carry over that information over to a whole new page - truquill.com/tenant through html? HTML Code: <form name="input" action="http://www.truquill.com/tenant.html" method="get"> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"><br> <input type="submit" value="Submit"> </form> I have looked at server sider related stuff but that was way over my head. Was hoping there might be a solution in html? Thoughts? Thanks! Very new to HTML. I have a basic "Add To Cart" button created thru PayPal's website payments standard. I want to add a 20% discount cart wide for "New Customers Only" at checkout. I have checked add variables and added discount_amount_cart=20. Still doesn't work. I have read that PayPal will not allow discounts in their shopping carts because they are not the owner of said discount. True or False?? Is this possible to do thru PayPal w/out using a third party. If not, why do they give us an option to add advanced variables. Hopefully I'm on the right track here. All help is greatly appreciated!!! This is what I have so far. The original button was set up as a "Computer Setup" service costing $60 usd, small button, encrypted, no drop down or text menus. Original code: <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="G7LXUWQLSJPBY"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </form> What I have created so far. Still doesn't work. <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="G7LXUWQLSJPBY"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="discount_amount_cart"> <input type="hidden" name="item_name" value="New Customer Discount"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="discount_amount_cart" value="20"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </form> |