Jump to content

joanne22

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by joanne22

  1. joanne22

    error message

    Yes thats what I get now, I had been messing around trying to sort bits out, I don't really understand what is wrong as I managed to get it up and running in the first place, do you know how to sort this?Thanks
  2. joanne22

    error message

    Hi, I have created an online questionnaire. After users have entered all their details they press a submit button and their data is saved to a database. I had my site up and running yesterday but since I made a few formatting changes and now I can't get it working at all. I keep getting the error message:The user instance login flag is not supported on this version of SQL Server. The connection will be closed. whenever you click submit, any ideas what has gone wrong? my site is http://ebaysurvey.co.uk.testurl.co.ukthanks
  3. Hi,I am hoping someone can help me. I have no idea what I am doing as I am completely new to this...I have a questionnaire which I have written in html, it uses javascript functions to hide/display questions depending on particular answers that users provide. When the user selects 'submit' I need the data to be saved to a database. I do not want the users to see all the details they have just entered, just a message saying 'thanks'. How do i code the php file to do this, my questionnaire mainly consists of radio boxes and checkboxes? Thanks
  4. Sorry!It works to a certain degree, i.e if a user selects neither qu2 and qu3 are displayed and if they select ,buyer/seller/both qu 4 is displayed. I was just wanting to cater for the situation when a user intends to select buyer for instance but selects neither by mistake. This will display qu2 and 3. If they then change their mind and select buyer qu2/3 will still be displayed with qu4 following. If the user is a buyer I don't want them to answer 2 and 3 because that doesn't really make sense so I want the questions to disappear if the user behaves in this manner. Am I making sense now?
  5. ah I think thats the problem! Yeah that is what happens but I want it to display qus 2 and 3 only if the person selects neither, the questionnaire will then terminate as the questions will be irrelevant to them. What I wanted to do was that if someone accidentally selected 'neither' (2 and 3 would be displayed) and then selected one of the other options instead - 2 and 3 would then disappear but at the moment everyone just sees everything!That utility file was an experiment that went wrong, I don't need it so will delete it!
  6. yeah, i wondered if that was the case! my code is really really long as i have coded all the questions, would it be better to email it to you?Thanks
  7. again, thank you! I think I misunderstood what you initially said about the function calls! all this changed still not working though, its getting on my nerves now!
  8. yeah thats right, but its still not working! Is there any chance it could be something I've coded elsewhere, in the style or something?Thanks
  9. ah thanks for that! Its still not working though, here is what I havevar qu1Div = new Array(2);qu1[0] = "both";qu1[1] = "neither";function onchangeQu1(theRadio, theObjectId){ theObject = document.getElementById(theObjectId); if(theRadio.checked){ //Remove all. for(i=0; i<qu1.length; i++){ document.getElementById(qu1).style.display = "none"; } //Display correct one theObject.style.display='block'; } else{ theObject.style.display='none'; } }and the other part...<div class="start" id="main"><form name="eBayform"><h3>1) Do you have a buyer/seller account registered with eBay?</h3><table class="center"> <tr> <td><input type="radio" name="account" value="buyer" onClick="onchangeQu1('both');" /> Buyer</td> <td><input type="radio" name="account" value="seller" onClick="onchangeQu1('both');" /> Seller</td> <td><input type="radio" name="account" value="both" onClick="onchangeQu1('both');" /> Both</td> <td><input type="radio" name="account" value="neither" onClick="onchangeQu1('neither');" /> Neither</td> </tr> </table></form></div>
  10. Hi again!I implemented the code as you said, changing the headings and the code in the tables to:<td><input type="radio" name="account" value="buyer" onClick="onchangeQu1('both'));" /> Buyer</td>but the questions are all still showing when I click on the different radio buttons, it must be something really simple but I just can't see what it is! Any idea what I might be doing wrong?Thanks
  11. Yeah, I implemented it your way, I think I may have explained my initial problem a bit vaguely! My code for the first question is...<div class="start" id="main"><form name="eBayform"><table class="center"><h3>1) Do you have a buyer/seller account registered with eBay?</h3> <tr> <td><input type="radio" name="account" value="buyer" onClick="onchangeQu1(this,document.getElementById ('both'));" /> Buyer</td> <td><input type="radio" name="account" value="seller" onClick="onchangeQu1(this,document.getElementById ('both'));" /> Seller</td> <td><input type="radio" name="account" value="both" onClick="onchangeQu1(this,document.getElementById ('both'));" /> Both</td> <td><input type="radio" name="account" value="neither" onClick="onchangeQu1(this,document.getElementById ('neither'));" /> Neither</td> </tr> </table></form></div>and then the function...function onchangeQu1(theRadio, theObject){ if(theRadio.checked) theObject.style.display='block'; else theObject.style.display='none';}I have questions targeted for respondents who either use ebay for buying/selling or not at all, therefore if a user initially selects 'neither' but then changes their choice to 'seller', the current state of the code means that all the questions are displayed!! Thanks very much for you help!!
  12. Thanks that is great! I've managed to get that working. Do you have any idea how you would manipulate it if the user was to go back to the original question and change their answer, because at the moment if you select different answers the questions all end up being displayed on the page anyway?
  13. Hi,I am hoping someone can help me. I am new to javascript and am creating a questionnaire. I want to make it so that when someone selects a particular answer, the page will refresh with specific questions depending on their answers for the previous, does anyone know how to do this??Thanks very much!!
×
×
  • Create New...