Re: Control GET data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux