-
Posts
1,418 -
Joined
-
Last visited
Everything posted by abinidi
-
YAY! Welcome Sam!!!! Congratluations on your new position. This is just further evidence of how TCH administration really care about customers!!!
-
YAY!!! Thanks!! I LOVE TCH!!!!! PM is on the way....
-
Hi Lisa. Welcome to the forums. Be sure that when you go to "www.domain.com/sqmail" that you replace the "www.domain.com" part with YOUR domain information. So if your website was: www.lbluttrel.com, you would go to www.lbluttrel.com/sqmail. Often we just type "www.domain.com" to be a type of variable that means "your site." You probably knew this, but since you said you were really new at this, I thought I might point that out just in case. Welcome to the TCH family. If you have any additional questions, be sure to ask. We love to help.
-
Too bad nobody had any suggestions for me. I'll post the solution I came up with here, in case it helps somebody else later. I'm sure this isn't the best solution, but hey, it worked for me, and that was all I really wanted. I'm not looking for a robust web application here, just enough to get the data collected for the thesis. We're only talking about 150 visitors who will ever use the site, and they will only use it once. So its not a huge deal. Anyway, here is the code I used to make it work: ><? if( $t == 1 ) { ?> <html><head><title>German Survey</title> <META HTTP-EQUIV="Refresh" CONTENT="2; URL=ak.php?t=<? echo($t) ?>&r=<? echo($r) ?>"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body><p> <? include("displaytreatment.php") ?></p><p> <? printf("You wrote: $response <br>\n"); ?><p>You will be redirected to ak.php</p></body></html> <? } else if( $t == 2 ) { ?> <html><head><title>German Survey</title> <META HTTP-EQUIV="Refresh" CONTENT="2; URL=bm.php?t=<? echo($t) ?>&r=<? echo($r) ?>"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body><p> <? include("displaytreatment.php") ?></p><p> <? printf("You wrote: $response <br>\n"); ?><p>You will be redirected to bm.php</p></body></html> <? } else { echo "There has been an error with the treatment varable" } So, that is my un-elegant solution. Maybe it will help somebody someday. If I ever find a more elegant way to do it, I'll let you know.
-
I believe that if you have a reseller account you can set up a separate control panel for subdomains. But I don't have a reseller account, so I can't verify this for you. Maybe somebody with a reseller account could respond to this...
-
Ok, so I realized the answer to my question. Basically, I created a blank hidden input type (name pcounter)with no value. Then I used javaScript to insert a value into the hidden input container that was placed inside the form. Then I could use PHP to find it. So, here is the code for the hidden input type: ><input type="hidden" name="pcounter" value="0"> And here is the code for the java script: >var total=0 //variable used to count number of times users hear a specific form in the passage function performCount() { //v0.1 Counts number of times users click the Count button total++; //add one to the total variable //alert(total) //used for debugging; creates popup alert showing variable value document.listen.pcounter.value=total; //set hidden filed to variable so it can be passed to PHP } I was glad to get it to work. However, now I've realized that I need to do some document linking with PHP. Here is my new problem. In javascript there is a document.location function that allows me to link to another page. I need to find a similar function in PHP. So, here is the javascript I was using: >function goNextPage() { //v0.1 var treatment; treatment=document.inputForm.treatmentID.value; //get treatment from form (used PHP to get it there from the URL) if(treatment==1){ document.location='bm.php?t=<? echo($t) ?>&r=<? echo($r) ?>'} else if(treatment==2){ document.location='fx.php?t=<? echo($t) ?>&r=<? echo($r) ?>'} else{ alert('There has been an error with the treatment varable')} } So as part of the function, the user was directed to the specific page. How can I do this with PHP? I've started with this (and I'm pulling the $t variable from the URL): >if( $t == 1) { } elseif( $ == 2) { } else { echo "There has been an error with the treatment varable" } But what I need are the commands to send users to a specific page if the conditions are met. Any suggestions?
-
Specifically, there is one instance where a user is listening to an audio passage, and they are supposed to click a button every time they hear a specific word in the passage. The button I created uses this code: ><input type="button" name="count" value="Count" onClick="performCount()"> the performCount() function is: >var total=0 //variable used to count number of times users hear a specific form in the passage function performCount() { //v0.1 Counts number of times users click the Count button total++; //add one to the total variable alert(total) //used for debugging; creates popup alert showing variable's value } But, when I submit the form, I need to be able to get the value of the total variable, so I can use PHP to store it in the mySQL database. I'm not sure what code I need to do that. Sorry. I'm not trying to be dense here, but this _is_ a learning process...
-
The survey will only be adiminstered in a unversity computer lab to specific users during their class time. So, I know the hardware and software settings for these machines, and they allow javascript. Therefore all users will have javaScript enabled. I realize I could do the form validation with PHP, but I don't know enough about it yet to get it ready by Thursday. (I'm being minimalist here, and doing just enought to get the survey to load and store data.)
-
I told you a week or so ago that I was looking for a php script that would help me gather data for my wife's Master's thesis. I looked at a number of sites, and couldn't find a survey that met my needs so I decided it would be easier to just do it all from scratch. (Easier? maybe not. I've never written a php script before, and I've never actually written my own connections to a mySQL database before, so maybe it wasn't easier, but hey, I'm leaning a lot as I go...) I have a master plan, and I've written all the HTML pages (there has been *no* attempt at making them look nice. Just get basic functionality there. Once the functionality is there, I can make them look nice if I have time). When I wrote the HTML pages, I included javaScript validation of my form elements. So I have an onClick event that executes a javaScript function that validates the form. Now what I want to do is this: if the form is valid, I want to write the information to the database. So, I'm looking for help on integrating PHP and javaScript. Here are some specific starter questions. 1. Since my "submit" button is really just a button that executes a javaScript function, how can I get the javaScript function to call the php script? Specifically, how do I get the data from the form into the mySQL database if I've used javaScript form validation? 2. Can I pass a javaScript variable to a PHP variable? How? I'm sure I'll have a ton more questions. But these ones will get me past my current brain slump. Thanks
-
I added myself!
-
Welcome to the forums, sleazy! I haven't had a chance to play your game, but I thought I'd at least offer you a warm welcome to the forums. Happy Holidays.
-
83 -- the year I started kindergarden.... Sorry, Samantha. I couldn't resist.... <ducking and running>
-
I'm still hoping that I'll win this one.... <chanting> eighty-one. eighty-one. eighty-one.</chanting>
-
Sorry we couldn't be more helpful. When I said "the beset option for now" I didn't mean it was a great option. It is just the best of the available options, since there _is_ no server-side option--which I totally understand and support even though it means no server-side spell checker for me, because it is policies like this that keep all the accounts running at optimal speed and capacity. If you are managing 400+ desktops, then I suppose that you have an image that you are using to restore each of the desktops. I wonder if you couldn't add the client-side options that we've discussed to your image, so that next time you roll out the image the computers have the client-side app. The bonus of the client-side app is that it works for all webforms, not just blogs. Anyway, consider the possiblity of adding it to your image; maybe that will make it easier for you. Then again, if you have 400 client machines, I'm wondering about the number of WP blogs you have students using? Might you consider a switch to a dedicated server anyway? I don't know if I'm being coherent. I'm coming down with a cold, and my head is starting to spin. So if none of this makes sense, I apologize... Best wishes,
-
A fantastic suggestion. I hadn't thought of that. Thanks Charles!!! I'll let you know if I found what I'm looking for.
-
Welcome to TCH and the forums. I think that GroovyFish got you covered. Usually domain propogation for .com and .net and .org domains is much faster than the 72 hours, but we say 72 just to be safe. If done correctly, it shouldn't take LONGER than 72 hours. Often it is MUCH shorter. Come back to the forums! We're a friendly bunch!!
-
Well, I've tried it. I disabled the restriction on only allowing logged-in users to comment. I installed Spam Karma 2, and bad-behavior. We'll see if it works!!
-
Do you do this in place of requiring people to register in order to post comments? Because I require people to register to post comments on my blog, and then I have to approve the first comment from each user before they can be posted live on the blog. However, I've often thought it would be good to allow anonymous posts, so maybe I'll try Spam Karma 2 and see how it works for me.
-
I also use a client-side spellchecker (Spellbound for Firefox, at TCH-Bruce's suggestion), and I find that it works great for me (for any web form, not just my blog). I don't know of any server-side solution that isn't too hard on the servers. I mean, yeah, spell check would be nice, but if it is too-resource intensive, then everybody on the same server suffers. I appreciate the policy becasue I'm glad that it means that MY site doesn't suffer because of what other sites on my server are doing. So, the best option for now seems to be a client-side spell check before form submission.
-
Ok. Found some more information. Here is the URL of the help topic on your registrar's site. Their specific steps will be exactly what you need. h*tp://www.directnic.com/help/faq/index.php?question_id=39&topic_id=8 If you don't know your nameservers, and if you can't find your TCH Welcome e-mail, you will still need to contact the TCH Help Desk for that info. Don't worry. They are very nice people, and are usually very fast.
-
Basically, you have to go back to the company where you registered the domain name. (They are called the registrar, and they appear to be DirectNIC; their website is directnic.com.) You log in to your account with them, and there should be a place where you can modify the setting for each domain that you have registered. On the settings page, you should look for a link or button related to "Nameservers" or something similar. (At my registrar, I log in to my account, and then I click on "Manage Domains", then I click on "Set Nameservers"). At that point, you will enter in the nameserver information that was provided to you in your TCH welcome e-mail. If you don't remember what that infomration is and you can't find your welcome e-mail, then you should open a ticket to the help desk (there is a link to that at the top of this page). Once you enter the nameserver information, you will have to wait for UP TO 72 hours for the change to take effect throughout the Internet (this time is referred to as domain propogation). It may be working in as little as a few minutes, or it may take up to 3 days. There is nothing that can be done to speed up this time. If you get confused, you can always contact the support staff at your registrar, who will have more specific information about how you set your nameservers. Let us know if we can be of more help....
-
Welcome to the forums, Amizzy!!! TCH-Thomas is right -- that is indeed your problem. Do you know how to change your nameservers? Because if you don't, post back, and we can help you with that too.
-
Hi TCHers. Ok. Here is my story. My wife is preparing to gather data for her master's thesis, and we want to gather the data online, and have it stored in a database. It seems that a PHP and MySQL database combination would be perfect. Her program is in second language acquisition (specifically how people learn German). Basically I need to create the following: 1. A screen where users log in using their student ID number. The Student ID number is checked against a database that ties the ID to a specific treatment. That is the only time that database is used, because you can't be able to link the results to a particular student. 2. A screen where users enter biographica information. 3. A practice screen where users click a media button, listening for information. 4. A text box where users enter all the information they remember from the media on the previous page. This page must have a submit button, and the information is stored in the database. 5. Now, based on the treatment number assigned to that users' User ID, users will get one of 8 treatments. Each treatment consists of 4 screens. On the first and third screen, users have the media button where they click to listen to a passage. On the second and fourth screens, users have the text box where they enter the information they remember from the passage. For treatments 3-8 there is an additional element on the first and third screens. It is a button that users click on when they hear a specific grammatical feature in the listening passage. This button is just a counter; it isn't tied to the passage at all. In the end, we just want to know how many times the user heard the grammatical feature. We dont' care when they heard it. The treatments vary based on which listening passage the users get first, and for treatments 3-8, the grammatical feature they are listening for. I think this is pretty easy. I just have never done anything in PHP or in MySQL. So, I'm wondering first if there is a reference where I can go to figure out this stuff to get started, and then second, I'm wondering if there is anybody who would be willing to help me work out the bugs that are sure to arise as I work on this. Because of the number of pages involved, I'm not sure if it would be best to discuss this in the forums or off-list. Anyway, if you have any ideas for me, please let me know. I've only got two weeks until she has to be gathering her data, so I gotta move fast on this one. (Nothing like trial by fire!) Thanks, Paul
