Form variable concatenated

S

Shabam

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.
 
O

Oli Filth

Shabam said the following on 16/09/2005 00:56:
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.

Why can't you do this server-side in the script that receives the form
submission?
 
M

Mark Parnell

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?

It is trivial to do, but the exact details depend on what language your
form handler is written in. For example, in PHP:

$newString = $_POST['fieldname'].'.example.com';
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top