Jump to content
xisto Community
Sign in to follow this  
PlugComputers

Help With Simple Php Form

Recommended Posts

Hello all.

I have recently changed some stuff around on my website and now my form email script is not working on the page...heres my situation:

On my website Plug Computers we have custom build configuration pages (for example: http://forums.xisto.com/no_longer_exists/

The way the forms results have been done in the past is with a email script where I get the form results in my email. This has worked well, but now it is not working.

I recently added a new script to the page in order to assign dollar values to each of the computer parts via javascript. You can see at the bottom of the page the price is updated depending upon what computer components are selected. Since adding this my script that emails my form results does not work. When you click the submit button on the bottom of the page nothing happens.

Could you please take a look at my source on http://forums.xisto.com/no_longer_exists/ and tell me what is going on and why are these 2 functions conflicting...

Thanks alot.

Share this post


Link to post
Share on other sites

PHP is server side run script, therefore you have to post L10FmX.php source code here in order to see what is not sent correctly.

 

Obviously you are passing variables to L10FmX.php and this file is doing all emailing and such?

Share this post


Link to post
Share on other sites
// configuration variables////////////////////////////////////////////////////////////////////////////////////////// List all domains, including posible subdomains (e.g. ; that are allowed to submit// requests to this script and the domains of any posible recipient email address.$validReferrers = array('plugcomputers.com','plugcomputers.com;;// Use the this array (or create new arrays with a different association) to replace// setting fields in the form. Don't delete the 'default' array.$formAction['default'] = array(	'recipient' => 'sales@plugcomputers.com',	'recipient_cc' => '',	'recipient_bcc' => '',	'subject' => 'Schedule your Build Form',	'redirect' => 'http://forums.xisto.com/no_longer_exists/;,	'email' => '',	'realname' => '',	'required' => '',	'format' => 'html',	'sesrep_max_items' => '10',);// If set to 0, the form can set the email recipient. For security reasons you should// set this variable to 1.$disableFormRecipients = 1;

That is the configuration part of L10FmX.php, it says not to touch the rest of it, so I didn't. I just configured this part with my email, referrers, redirect, ect. as you can see.

Anything look weird about this?

I'm not so sure there is anything wrong with this L10FmX.php because it was working perfectly fine before I added the price calculator on the page. Now it seems the 2 will not function together.

Share this post


Link to post
Share on other sites

BuffaloHelp-

I figured something out (there were 2 opening <form... tags and the first one that the page encounters is what is uses and as result the second one is just content within the first form) but am now having a problem with the price calculator (theForm22)

This is what the code on my page looked like before...

<form name="theForm22" onclick="getTotal() "><form name="theForm" action="L10FmX.php" METHOD="POST"><input type="hidden" name="required" value="email,realname">


I tried flipping the placement of the 2 <form tags so that it would execute the L10FmX.php first:
<form name="theForm" action="L10FmX.php" METHOD="POST"><input type="hidden" name="required" value="email,realname">		<form name="theForm22" onclick="getTotal() ">

Now after doing this it DOES submit and will send the emails like its supposed to, but now the price calculator (theForm22) will not work. Any way to make both of these work?

Share this post


Link to post
Share on other sites

im not very good with JS but surely you can cut the "OnClick" event from form22 and paste that into the first form's tag and it should work right?

Share this post


Link to post
Share on other sites

im not very good with JS but surely you can cut the "OnClick" event from form22 and paste that into the first form's tag and it should work right?


I tried that, so now the coding looks like this:
<form name="theForm" action="L10FmX.php" METHOD="POST" onclick="getTotal()"><input type="hidden" name="required" value="email,realname">

But its the same as before, the email script works now, but the not the total at the bottom of the page does not even show up. You click the parts and nothing shows up at the bottom.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.