Why are you forcing the input into the GET variable or the URL string?

Why not just use the post from the form variable??

As for you question...
the answer is yes:
make the submit button a button and onclick="javascript_function()"

Javascript_function() {
   val1 = document.getElementbyId("lastname").value;
   val2 = document.getelemntById("first_name").value
   var url ="somepage.php?name="+val2+"_"+val1;
   window.location = url;
}

again...if you have a form, use the post variables!
-Brad|****|

Steffen Mazanek wrote:

Hello,

I want to provide two input text fields lastname and firstname and if the user
pushes the submit button the generated url should be 
...?name=firstname_lastname.

Is this possible and how?

Thank you for helping a php newbie.

Steffen Mazanek

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to