Code Help

They have: 31 posts

Joined: Apr 2003

I have set up a form on my site for members to signup for the site, and then for it to be sent to an email account for signups. I tested it out, and when I filled out the form and submitted it, it came to the email account, but didnt have any of the info I submitted. Here is the only thing that was in my email which was submitted:

To:
[email protected]
Subject:
Form posted from Microsoft Internet Explorer.
From:
Chris Jackosn Add to Contacts
Date:
Mon, 30 Jun 2003 22:31:26 -0400 (EDT)
View Message Source

op.saveCons=Register
dispMode=add
panesOpen=ffffffffffff
email-address=

I need for this code to where it would send the info that people submit to be sent to the address. Here is the page the code is on:

http://www.algoresupportcenter.com/teamsignup.html

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

You've got your tag well after all your input fields. So what's not in the is not mailed. Instead, have all your inputs between and . Smiling

They have: 31 posts

Joined: Apr 2003

Can you show me what you mean?
Thanks!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

At the moment you have

<input type="text" name="user_name" id="user_name" value="" maxlength="60"  onfocus="select()" />
. . .
<input type="password" name="user_password" id="user_password" value="" maxlength="20"  onfocus="select()" />

. . . etc . . .


<form target =" _parent"  action="mailto: <a href="mailto:[email protected]" class="bb-email">[email protected]</a>" method="post" enctype="text/plain"> <input type="submit" name="op.saveCons" id="op.saveCons" value="Register" class="Button" />&nbsp;&nbsp;

<input type="submit" name="op.cnclAddCons" id="op.cnclAddCons" value="Cancel" class="Button" />
</p>
<input type="hidden" name="dispMode" id="dispMode" value="add" />


<input type="hidden" name="panesOpen" id="panesOpen" value="ffffffffffff" />
<!-- used in cons_personal.tpt to include additional arguments to post (e.g. for ADAP, next URLs for the various affiliates)
</form>
'

What you want is for it to look more like:

<form target =" _parent"  action="mailto: <a href="mailto:[email protected]" class="bb-email">[email protected]</a>" method="post" enctype="text/plain">
. . .
<input type="text" name="user_name" id="user_name" value="" maxlength="60"  onfocus="select()" />
. . .
<input type="password" name="user_password" id="user_password" value="" maxlength="20"  onfocus="select()" />

. . . etc . . .


<input type="submit" name="op.saveCons" id="op.saveCons" value="Register" class="Button" />&nbsp;&nbsp;

<input type="submit" name="op.cnclAddCons" id="op.cnclAddCons" value="Cancel" class="Button" />
</p>
<input type="hidden" name="dispMode" id="dispMode" value="add" />


<input type="hidden" name="panesOpen" id="panesOpen" value="ffffffffffff" />
<!-- used in cons_personal.tpt to include additional arguments to post (e.g. for ADAP, next URLs for the various affiliates) --></form>
'

You might also want to close that comment before the bit, as I've done in the second chunk of code. Smiling

They have: 31 posts

Joined: Apr 2003

I need someone to do all this code. I am HTML illetirate. If I do whta you just showed me, I will mess it up. Can someone please do it? i really appreciate it!

Busy's picture

He has: 6,151 posts

Joined: May 2001

just put the tag at the very top, then list all your at the very bottom.

think of a form as a list, you open the list (start tag), then list the items (li tags), then close the list (end tag).
you open the form (open tag), list the items (input tags) and then close the form (end tag)

practice is the key, the more you do the better you'll get

They have: 31 posts

Joined: Apr 2003

Question again, do I put the form things at the very beging of form or just at the begining of where it has ACTION?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

<form [stuff]>
  <input [something]>
  <input [anotherthing]>
  <input [evenmorethings]>
</form>
'

is the basic structure of a form. Just ensure that all your fields are between the and tags. Smiling

They have: 31 posts

Joined: Apr 2003

I still cant get it. If I put form at the begining of the whole script, then form at the very end, it wont send it to the address. The ACTION to send it through email has to have form at each end.

Someone please do this for me, I have tried all night to try to do this.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Sorry, can't do it for ya -- code's way too big and messy, and I'm not familiar with it. Smiling

atm, you essentially have:

<input>
<input>
<input>
<select><option></select>
<etc>

<form>
<input submit>
</form>
'

Notice how the first set of s are outside the . . tags? That means they aren't included as part of the form that is mailed to you. What you have to do is make sure that all your input and select fields lie within the . . tags. Obviously, the opening should be inside the . . region to work. Once you've built the form to include all the data input you want to send, you can assign an ACTION right at the top, not at each end. That's all there is to it. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.