Question

Asked on 2009-12-22 at 22:36:11ID: 25440076

Combine two fields using java/ajax BEFORE form submission

by: hubfub380

Rating8.2Very Good

OK So I have a pretty simple form that goes something like what you see below.

What I want to do is to add something to the field "email_body"

so basically it adds "{wishlink_do_not_delete_it}" to the end of text that the user types in

so that the final result that gets submitted as email_body is:
USER INPUT HERE BLAH BLAH
{wishlink_do_not_delete_it}

I know this can be done with java.. does anyone know how?

Thanks in advance

<form method="post" action="index.php?" >
		<textarea rows="7" cols="40" name="email_body" class="inputbox" style="width: 255px;">
USER INPUT HERE BLAH BLAH	
		</textarea><br/><br/>
		<?php echo JText::_('INVITE_BY_EA') ?><br />
		<input type="text" name="invite_by_ea" size="26" class="inputbox" style="width: 255px;" /><br /><input type="submit" value="<?php echo JText::_('BTN_INVITE') ?>" title="<?php echo JText::_('TITLE_EMAIL_EA') ?>" class="addtocart_button" style="margin-top: 8px" />
	</form>
                              
1:
2:
3:
4:
5:
6:
7:

Select allOpen in new window

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
Participating Experts
1
Solution Grade
A

Replies

 by: gurvinder372

Posted on 2009-12-22 at 22:44:15ID: 28118347

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: hubfub

Posted on 2009-12-22 at 22:53:13ID: 28118348

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: gurvinder372

Posted on 2009-12-22 at 23:50:51ID: 28118349

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: hubfub

Posted on 2009-12-23 at 00:36:02ID: 28118350

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: hubfub

Posted on 2009-12-23 at 01:15:18ID: 32741890

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. mplungjan

    1,840

    0 points yesterday

    Profile

BrowseAre you an Expert?