Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

2 Diffrent Form-mails


7 replies to this topic

#1 Compute

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 182 posts

Posted 27 August 2005 - 11:12 PM

Ok I set up 1 form mail that is my contact us form-mail. Now I want to make a second form-mail with different input buttons and options. So what I did was I made another txt file called signup.txt my first txt file was template.txt.

Here is my first email-form http://www.corzendes...com/contact.htm

Now this is my second Email-form http://www.corzendesign.com/signup.htm



Now my problem is the first form works just fine but the second one says that it could not open signup.txt. Basically gives me a page not found error.

So is it even possible to make 2 txt files 1 for each type of form. the sign up form is basically a form that I want my clients to fill out so that I could get their information easily.

Any suggestions?

#2 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 27 August 2005 - 11:16 PM

I'm getting this error

Quote

Error
No email was sent due to an error.

403 No variable substitutions in template

/home/compute/public_html/signup.txt

It would be helpful if I can see the signup.htm and signup.txt file

#3 midnightvamp

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 634 posts
  • Gender:Female
  • Location:Oshawa, Ontario, Canada, North America, Planet Earth, Our Sun's Orbit, Milky Way Galaxy, The Universe, Beyond
  • myCENT:21.77

Posted 27 August 2005 - 11:19 PM

Compute, on Aug 27 2005, 07:12 PM, said:

So is it even possible to make 2 txt files 1 for each type of form. the sign up form is basically a form that I want my clients to fill out so that I could get their information easily.

Any suggestions?

View Post



Hey again - good to hear you got that other form working now. I made a second form as well after. I needed one for submissions and one for subscriptions. To do this, I made two separate txt files - one for each of them. They work fine. Just make sure to keep them in the same folder. I put them all into the same folder and it works fine that way.

Good luck, and if you are still stuck, just ask again... we'll try our best.

#4 Compute

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 182 posts

Posted 27 August 2005 - 11:25 PM

Ok this is my signup.htm html code.

<form method="POST" action="http://www.corzendesign.com/cgi-bin/cgiemail/signup.txt" name="myform"> 
<input type="hidden" name="success" value="http://www.corzendesign.com/planfinal.htm">
<b><center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please Fill Out All Fields</center></B><br>
&nbsp;&nbsp;&nbsp;First and Last Name:<br>
&nbsp;&nbsp;&nbsp;<input type="text" name="name" size=25 maxlength=50><br><br>

&nbsp;&nbsp;&nbsp;Email Address:<br>
&nbsp;&nbsp;&nbsp;<input type="text" name="email" size=25 maxlength=50><br><br>

&nbsp;&nbsp;&nbsp;Street Address:<br>
&nbsp;&nbsp;&nbsp;<input type="text" name="address" size=25 maxlength=50><br><br>

&nbsp;&nbsp;&nbsp;City of Residence:<br>
&nbsp;&nbsp;&nbsp;<input type="text" name="city" size=25 maxlength=50><br><br>

&nbsp;&nbsp;&nbsp;Zip Code:<br>
&nbsp;&nbsp;&nbsp;<input type="text" name="zip" size=25 maxlength=50><br><br>

&nbsp;&nbsp;&nbsp;Plan Selection:
<input type="radio" name="plan" value="bronze"> Bronze&nbsp;
<input type="radio" name="plan" value="silver"> Silver&nbsp;
<input type="radio" name="plan" value="gold"> Gold&nbsp;
<input type="radio" name="plan" value="maintenance"> Maintenance&nbsp;<br><br>

&nbsp;&nbsp;&nbsp;Phone:
<input type="text" name="area" size=4 maxlength=5> -
<input type="text" name="exchange" size=4 maxlength=3> -
<input type="text" name="number" size=5 maxlength=4><br>

<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="submit" value="Send A Web Design Plan Request">

</form>


This is my signup.txt

To: webarby@yahoo.com
Subject: Request Web Design Plan

Name entered: [name]

Sender's email: [email]

Sender's addres: [address]

Sender's City: [city]

Sender's ZipCode: [zip]

Sender's Plan: [plan]

Sender's phone: ([area])[exchange]-[number]

Sender's question: [question]

Sorry for double post but just wanted to fix something

The signup.txt code is

Quote

To: webarby@yahoo.com
Subject: Request Web Design Plan

Name entered: [name]

Sender's email: [email]

Sender's addres: [address]

Sender's City: [city]

Sender's ZipCode: [zip]

Sender's Plan: [plan]

Sender's phone: ([area])[exchange]-[number]


Still have same problem.

Sorry for triple post. I'm REALLLLY sorry.

But I just solved my own problem...

It was just cookies. I trtied on my laptop and it worked fine.

Sorry to waist your time and triple posting.

Notice from BuffaloHELP:
Merging three posts.


#5 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 27 August 2005 - 11:46 PM

You have the same NAME variable. Remember this is an elementary formmailing script. You must not have the same variable. You can achieve your code ONLY if you put IF then ELSE loop script.
&nbsp;&nbsp;&nbsp;Plan Selection:
<input type="radio" name="plan" value="bronze"> Bronze&nbsp;
<input type="radio" name="plan" value="silver"> Silver&nbsp;
<input type="radio" name="plan" value="gold"> Gold&nbsp;
<input type="radio" name="plan" value="maintenance">
This is where I think the substitution erro occurs. You cannot have the same NAME variable. For now, keep it simple. Try like this
<input type="radio" name="Bronze" value="Yes"> Bronze&nbsp;
<input type="radio" name="Silver" value="Yes"> Silver&nbsp;
<input type="radio" name="Gold" value="Yes"> Gold&nbsp;
<input type="radio" name="Maintenance" value="Yes">
And your signup.txt
To: webarby@yahoo.com
Subject: Request Web Design Plan

Name entered: [name]

Sender's email: [email]

Sender's addres: [address]

Sender's City: [city]

Sender's ZipCode: [zip]

Sender's Plan: Bronze - [Bronze]
                Silver - [Silver]
                Gold - [Gold]
                Maintenance - [Maintenance]   

Sender's phone: ([area])[exchange]-[number]

Sender's question: [question]
This will send you something like this when a visitor selects the silver plan

Quote

Name entered: Jack Spicer

Sender's email: address
...
Sender's Plan: Bronze -
                        Silver - Yes
                        Gold -
                        Maintenance -
It's not pretty but it works. ;) You get the idea what returns and what variable you need to separate and don't confuse the script... lol

#6 midnightvamp

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 634 posts
  • Gender:Female
  • Location:Oshawa, Ontario, Canada, North America, Planet Earth, Our Sun's Orbit, Milky Way Galaxy, The Universe, Beyond
  • myCENT:21.77

Posted 27 August 2005 - 11:50 PM

BuffaloHELP, on Aug 27 2005, 07:46 PM, said:

You have the same NAME variable. Remember this is an elementary formmailing script. You must not have the same variable. You can achieve your code ONLY if you put IF then ELSE loop script.

View Post



I'm not sure if that's true. Because for my second form, where I used radio buttons, I used the same 'name' variable, and it works fine. I kind of thought that you needed the same 'name' variable for radio buttons, so that it is only possible to pick one before submitting. I could be wrong though.

Anyway... happy to hear you got it working, Compute!

#7 Compute

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 182 posts

Posted 28 August 2005 - 12:33 AM

yup its working fine. Its fixed I have the same name variables, works fine.

Thanks for all the help ;)

midnightvamp glad yours works :P took me 1 whole day to fix this lol.

Thanks for the support BuffaloHELP :P Your a great help.

#8 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 28 August 2005 - 12:39 AM

Would you look at that... I learned something new to day, too ;) I guess when a variable requires to be a single value you can use one variable to gather multiple answers. Nice finding, guys!

----- Topic resolved, thread closed -----





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users