Hi.
I am very new to javascript and html and desperately need some help to finish the code on my website.
A page on my site directs the user to a feedback page with a name appended to the url. I have managed to extract a name from the url in a java script on the feedback page.
I am now trying to post the name, described as the variable "firstlastname" to a php script that then emails me the information through the following hidden input tag, embedded in a form:
<form action="feedback.php" method="post">
<input type="hidden" name="teacher" value='<? php echo $firstlastname;?>' />
....
The problem is that I cannot seem to be able to link the name, which varies depending on a name clicked on the previous page (and shows up therefore in the url). I have tried a few different variations and seem to only get "firstlastname" showing up on the email, and not the actual name of the teacher. Ie., this is not a variable, only a fixed value. This is very annoying. The other part of the script, that directs the html page to show the name as separate first and last names, seems to be working, so I figure that there is a problem with the <input type...> line as shown above.
I have defined the value firstlastname above using the following line:
var firstlastname = delineate1(text)+' '+delineate2(text);
How can I fix this so that I get the value firstlastname?
Any help would be much appreciated.