![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| JavaScript JavaScript are you needing help with functions in your script, free help is offered here for all JavaScript problems so if you have an JavaScript error in your code just ask. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I have a form page that accepts a text field variable. The problem is, I need to concatenate this text field variable with some other string. How can I get this done? So, suppose a user enters "hello" in the text box. When he submits the form I need the form variable DOMAINURL to be "hello.whatever.com" in the GET url. Will this require javascript or no? If so, what do I need? Thanks. | |||
|
| | #2 | ||
| ["Followup-To:" header set to alt.comp.lang.javascript.] On 2005-09-16, Shabam <chalupa@yomama-nospam.com> wrote: > I have a form page that accepts a text field variable. The problem is, I > need to concatenate this text field variable with some other string. How > can I get this done? In javascript + is used to concatenate strings > So, suppose a user enters "hello" in the text box. When he submits the form > I need the form variable DOMAINURL to be "hello.whatever.com" in the GET > url. Will this require javascript or no? If so, what do I need? Thanks. try this. <form method="get" action="whatever" > <input type="hidden" name="DOMAINURL" id="magic" /> <input onchange="document.getElementById('magic').value=t his.value+ '.whatever.com'"/> <input type="submit"/> </form> -- Bye. Jasen | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: concatenation, form, mail, variable |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to do a form submition to e-mail. | mythikal | Website Coding | 6 | 07-22-2008 8:13 PM |
| Catching form posted variable?? | Fishter | PHP | 1 | 07-01-2007 3:17 PM |
| Using a loop variable as part of another variable name? | MrBoom | PHP | 1 | 07-01-2007 3:12 PM |
| mail form problem | dustie | PHP | 0 | 07-01-2007 2:58 PM |
| Mail Factory - specify different MAIL FROM address to the From header | Ben Wylie | Pear | 3 | 05-20-2007 5:34 PM |
| Featured Websites | ||||
|