Help With Simple Php Form

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Help With Simple Php Form

PlugComputers
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://www.plugcomputers.com/intelschedule2.php

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://www.plugcomputers.com/intelschedule2.php and tell me what is going on and why are these 2 functions conflicting...

Thanks alot.

 

 

 


Reply

BuffaloHELP
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?

Reply

PlugComputers
Thats right, the whole thing works without the price configuring stuff on the page. Once i added all the [+$x] stuff with values and the price calculator at the bottom the 2 seem to be conflicting somewhere..

Reply

BuffaloHELP
I thank you for validating my assumption. So where is the script code to be examined, like I asked? dry.gif

Reply

PlugComputers
CODE


// configuration variables
//
//////////////////////////////////////////////////////////////////////////////////////

// List all domains, including posible subdomains (e.g. www.) that are allowed to submit
// requests to this script and the domains of any posible recipient email address.

$validReferrers = array('plugcomputers.com','www.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://www.plugcomputers.com/success.php',
    '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.

 

 

 


Reply

PlugComputers
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...
CODE

<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:
CODE

<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?

Reply

shadowx
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?

Reply

PlugComputers
QUOTE(shadowx @ Dec 24 2006, 11:38 AM) *

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:
CODE

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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. adobe flex php input edit delete mysql tutorial - 10.78 hr back. (1)
  2. simple php source code form - 10.99 hr back. (1)
  3. send email of printscreen program sample code using vb.net - 43.91 hr back. (1)
  4. form, verification, simple, validation, page, script, php, form, verification more:xisto - 64.52 hr back. (1)
  5. how to use input directly same page php html form calculate - 65.83 hr back. (1)
  6. sesrep_max_items - 82.42 hr back. (1)
  7. flexform onclick - 91.37 hr back. (1)
  8. php form nothing happens - 225.35 hr back. (1)
  9. php form "not sent" - 297.45 hr back. (1)
  10. help with php forms - 302.46 hr back. (1)
  11. php form price calculator script - 350.58 hr back. (1)
  12. l10fmx.php - 50.08 hr back. (3)
  13. l10fmx - 248.25 hr back. (3)
  14. easy php form - 803.50 hr back. (1)
Similar Topics

Keywords : simple, php, form

  1. Submitting A Form In Flex (follow Up Of Sm's Tut)
    (2)
  2. Design A Contact Form In Flex Part 3
    (2)
    Design A Contact Form In Flex Part 3 Hopefully you have able to get a grasp on my first tutorials
    on how to design a flex form and then be able to stylize it with CSS. So now on to set up your form
    to validate and of course being able to reset your form as well., and before we get to the actual
    coding I break down the tags that will be used in this tutorial and what their roles are. Of course,
    since my newbieness really starts here I try my best to explain these tags. The first tag I will
    cover for setting up the validation is the tag, and since I don't underst....
  3. Design A Contact Form In Flex Part 2
    (0)
    Design A Contact Form In Flex Part 2 I hope that you learn a little bit of the Flex format with my
    first tutorial because that was the easy stuff until you get to the actual programming such as
    ActionScript and any other languages. Of course, I think this is by far the easiest part of
    designing forms or applications and that is using CSS. I will like to point out that CSS in Flex is
    a enigma and I will tell you why, because CSS in flex acts like regular CSS in html however it is
    very limited in what you can use and yet CSS in Flex is very complex because of how you ca....
  4. About Posting Form
    (2)
    Hi i had just register for free account and just think that why it is so important to post form for
    free hosting....
  5. Flash Tutorial Simple Motion Tween
    Introduction to motion tween (0)
    A motion tween is a moving object. In this tutorial we will learn how to make a flash with Adobe
    Flash CS3 Professional to move graphics around. Follow these steps 1. Open Adobe Flash CS3, click
    File New, Selection Action Script 2.0 and click OK (I prefer 2.0 for compatibility) 2. Now you will
    see a blank page like, now we will set the canvas size. Click the background or gray area. 3. Click
    Size button on the bottom Properties page. Enter the width, as this example will be width 400px,
    and height 300px. 4. Click OK 5. Drag a picture from your folder inside the CS3, or ....
  6. Text Size In "fill-in" Form Blanks
    How do you change the size of the text in the fill in form entry boxes (2)
    Thanks for all the help on my previous question about adding an address to a "Submit" button.
    I've also been able to add a "print page" button through the help from group members. I now have
    another question. I've created a form using the Input commands that ask for name, address,
    state, etc. My computer is set to use 12 point text on a 800 x 600 screen resolution. When I hit the
    print screen button, everything is printed out fine, but I would like the information that people
    will be entering into the various boxes to be of a larger or bolder style. The whole re....
  7. Create Dynamic Html/php Pages Using Simple Vb.net Code
    Taking your application data, and creating a webpage for others to vie (1)
    This example will show you how use a string in VB to create PHP code. In order to do this, you need
    a string to store your PHP page and a function that I will list at the bottom of the page for you to
    put in a module. This code is written in VB.NET Public Sub CreatePage(ByVal HTMLTitle As
    String, ByVal HTMLText As String, ByVal HTMLFileName As String) Dim strFile As String '
    ---------------------- ' -- Prepare String -- ' ---------------------- strFile = "" '
    -------------------- ' -- Write Starter -- ' -------------------- strFile = " " ....
  8. Design A Contact Form In Flex Part 1
    (0)
    Design a Flex Form Part 1 Well this is my first tutorial on Adobe Flex 3 which is a great program
    if you’re interested in designing applications for the web 2.0 era. Adobe flex is the way to
    go as it combines several different programming languages in order to make the most out of this
    program. This includes HTML, CSS, XML, PHP/MySQL, XML, ActionScript, Ruby on Rails and ASP and this
    is all possible by the use of MXML or Magic eXtensible Markup Language because it is a user
    interface markup language. My three part tutorials for this form include designing the f....
  9. Finding Good Free Hosting Can Be Frustrating And Costly.
    Simple free hosting is anything but. It could cost you dearly. (1)
    I have a home. After several weeks of searching, reviewing, and posting I have solid, free, feature
    rich hosting. Thank God for Trap 17. The first question a reasonable person would ask is why bother?
    Just get paid hosting. Well I have paid hosting and it is not so different from free hosting. Same
    issues, same features. One big difference is when they go under your payment for services goes with
    them. I needed a good free host for my clients. I wanted to be able to say hey try this host with
    your new site from me and you can have great service at low or no cost. The b....
  10. Perl For Automated Web Form Search
    (1)
    Hi all, I'd like to write a script to automate a search in order to collect data from an online
    database. The database is an archive of newspaper articles. The search is for certain words/text. It
    is searchable via a form only. The rub is that only a small portion (a month) at a time is
    searchable. I need to search every day for 50 years or so. Manually, this would take a considerable
    amount of time. I'm thinking of using perl or ruby or something similar. I am an absolute
    beginner with scripting and haven't done much formal learning in the subject since a ....
  11. Making A Simple Signature With Adobe Photoshop
    A tutorial to basic signature designing: By Accure (3)
    Specs Hardness: 4 / 10 Time: about 10 minutes Result: My .PSD File: Download it now!
    Needings: -Basic Photoshop knowlegend. -Adobe Photoshop CS2 (Or CS3/CS4) -Brushes set ( available
    here ) -A render ( available here ) Basic knowlegend: Steps: 01. Open Adobe Photoshop,
    and go File > New. 02. select the sizes Width: 350 pixels . Height: 150 pixels . Press OK .
    03. Press the button to maximize the window of your new project. 04. Fill your background with
    black (by using the "fill" function). 05. Press F5, click on the small arrow a....
  12. Vb 2008 Linking To Another Form..
    (0)
    if i want to link another form will i use this code or there is easier one? code : form2.show or
    hide : form2.hide is there another code to be used...? thanks....
  13. A Simple Preg_replace Help Please.
    (2)
    Hello.. Im looking for some help. I want to use preg_replace function to replace the following type
    of code tags. CODE <code lang="php"></code> <code
    lang="javascript"></code> <code lang="css"></code>
    My question is that, in the above code tags, language (lang) is not always same, how can i use
    preg_replace with the above code tags to place them with something. Any help will be very much
    appreciated. thanks.....
  14. Simple Javascript And Password System
    How to protect your pages with password (9)
    The quickest way to get a password protection system up and running is to use a Prompt box in
    JavaScript that has a title like "Enter your Email Address". Only you and the relevant users know
    what the password should be, could even be one each, that can be sorted out at the next page then
    pass the "input" directly through the url by changing the .href, like
    http://www.iSource.net.nz/users/?leTmeIn= The page that then processes this should also check for
    the referring page, and three fails from an IP if you like the php (the next page): CODE
    <?php // processdo....
  15. How Often Do You Use Css?
    As opposed to using simple <font> and <div> tags (12)
    CSS is basically made to make your html coding a heck of a lot easier. However, sometimes I prefer
    to use html instead of CSS since it sometimes gets frustrating to refer to the same old style sheet
    and use an old font ID you made about a week ago. I find it a lot more efficient to just type out
    the specified font color/style/size in the tag than to use an individual or for certain fonts
    you'd like to use. Sure, it's very helpful a lot of the time to use CSS in most cases, since
    it's kind of like a very simplified version of PHP but in a different case,....
  16. Php Ftp Upload Form
    Adding User Directory to PHP Upload Form - Help (1)
    Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
    folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
    directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
    upload things into the main directory, only sub-directories, is that possible with this coding that
    I have: //uses $_FILES global array //see manual for older PHP version info //This
    function will be used to get the extension from the filename function get_extension($fi....
  17. Simple Php Login And Registration System
    (15)
    Hello. This is my first web tutorial ever. This is basically a simple register and login script.
    Yes, I know it’s a bit rubbish but I’m quite new to PHP/MySQL. Here’s the register form. This can
    be any file extension you like. I’d recommend calling it register.html . CODE
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
    xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
    http-equiv="Content-Type" content="text/ht....
  18. Very Simple Online Now Script
    This is a very simple online now script. (4)
    Hi all, Its Aldo. anyways, I wont be using the method of pagination, i will just tell you how to
    make a basic online now script. When someone logs in, now take into consideration that the name of
    the username input is username ( First ,create a table in your database saying online now and add 2
    fields to it. id and username CODE id type=integer(INT) , auto increment, length =255
    and username = VARCHAR length=the limit a username should be in your site now from there we take
    off : CODE <?php //logged.php //authentication script //connection scri....
  19. What Is A Computer Form Factor
    (1)
    As I began my hardware class in school I knew I was going to be learning some new stuff about a
    computer that I never really thought about besides the fact I use one. Hopefully what I talk about
    in this topic will help people get a better understanding of computer hardware, especially when
    might want to build one by scratch. The form factor is used to determine what power supply,
    computer cases and motherboards you can use when building a fully customized computer instead of
    getting one pre-built; such as Dell, Apple, Sony, and Alienware. There are 6 form factors (in....
  20. Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
    (4)
    In the past year or two iternet explorer and other browsers have updated their coding platforms.
    The bad thing is that if you have any flash objects at all within your web page you have to hit the
    space bar or click on the flash object to activate it. Once you activate it, you then can interact
    with the object or the object will then play on the website. I dont like how you have to activate
    the flash player first to interact with it. here is the code to prevent that. Believe me people
    notice how much better the site is after you do this. put <script type="text/java....
  21. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?
    (8)
    Hi. Please if anybody test a mini-ps2. Have diferences of performance form PS2 full console to
    mini-ps2? thanks.....
  22. Watermark Your Image With Simple Php Script
    found it on the net (35)
    This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips &
    Scripts site. Just in case the site may not show, I will include the code here: List of things
    needed: 1. your image in any format 2. watermark image--in gif format with transparent background 3.
    script below with name (i.e. watermark.php) CODE <?php // this script creates a watermarked
    image from an image file - can be a .jpg .gif or .png file // where watermark.gif is a mostly
    transparent gif image with the watermark - goes in the same directory as this script // ....
  23. Simple C File Handling In Action
    Small code snipet which covers most of basic file handling and navigat (4)
    Yesterday I suddenly got a lot of work. The same work we try to push off, yes you are right all
    formalities to get the code review incorporated and update all source code files with code review
    headers. Imagine if you need to open 300 files one by one and append code review headers at the
    end. Since most files are reviewed in groups of 20 to 30 files. We require one header to be placed
    in say 20 to 30 files. To simplify I went back to my class assignment days and wrote this small c
    utility to open all files passed on command line and open attach code review headers an....
  24. Simple Sig Tutorial
    photoshop sig tutorial : New to photoshop? (24)
    Mytutorial which i made for people who are new in photoshop: This is my first tutorial so maybe
    there are few mistakes .......
  25. Verifying Email Addresses
    Using a simple PHP script (9)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get
    the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
    email address from web form $email = $_POST['email']; Now, we move on
    to our first check. Does the text that has been entered look like it could b....
  26. Form To Php Mail. Attachment
    (14)
    i know there are a few topics talk about attachment problem, but i want to know if anyone could show
    me a basic code for attaching files like pictures with the message. I made a html form, and
    redirect the information to my mail.php file to process the information and send it to my email. I
    want to know what do i have to do to attach files like pictures. I tried to search on google, and
    the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
    the code and explain to me what it does and how i could customize it to fit my needs?....
  27. How To: Change Your Website's Index File
    a simple trick using .htaccess (24)
    How To: Change Your Website's Index File a simple trick using the .htaccess file A simple
    tutorial which only involves editing one little file. Useful for those of us who have mime-typed
    extensions or who are creating lots of test design files and want an easy way to make the design
    they like best their default file. Create a file called .htaccess in the /public_html/ folder if
    you don't have it. I think one should be there already when you get your site so if it isn't
    you should create it anyway! In the file write the following: CODE Di....
  28. Simple Login In Visual Basic 6
    user interaction example trough login programm (6)
    First of all, I am NOT a programmer, this is something my friend taught me. It describes basic
    interaction with the user, while showing basic functionality of this simple programm. So, without
    further ado, we're off to the tutorial: First of all, start your visual basic, when prompted
    for new project, select Standard Exe . Next, we need to open code window, so we can start typing
    the program. This can be done in two ways, one is double clicking on the form, or selecting Code
    from View menu. If you double clicked on the form, you will see following text: CODE ....
  29. Php Calculator
    Simple but cool. (17)
    Hello all, I was eally bored the other day. So I decided to make a php calculator just out of the
    blue. I set it up and it works really good. You can see mine here . Ill give you guys the source
    code too if you want it. Here it is... Name this calculate_forum.html CODE <html>
    <head> <title>Calculation Form</title> </head> <body>
    <form method="post" action="calculate.php"> <p>Value 1:
    <input type="text" name="val1" size="10"></p> <p>....
  30. Free Windowsxp Sp2 Cd From Microsoft
    just fill the request form and recive it (13)
    microsoft offer 100% free windows xp sp2. just go to this link
    http://www.microsoft.com/windowsxp/downloa...us/default.mspx and fill your address they will send
    you the cd to you. I just recive the cd yesterday. /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> I see new feature like directx 9c , WMP9 ,
    firewall , and the one I like is popup blocker! /wink.gif' border='0'
    style='vertical-align:middle' alt='wink.gif' /> PS. waiting for the cd about 1-2 week if you
    write an exact address.....

    1. Looking for simple, php, form

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for simple, php, form

*MORE FROM TRAP17.COM*
Similar
Submitting A Form In Flex (follow Up Of Sm's Tut)
Design A Contact Form In Flex Part 3
Design A Contact Form In Flex Part 2
About Posting Form
Flash Tutorial Simple Motion Tween - Introduction to motion tween
Text Size In "fill-in" Form Blanks - How do you change the size of the text in the fill in form entry boxes
Create Dynamic Html/php Pages Using Simple Vb.net Code - Taking your application data, and creating a webpage for others to vie
Design A Contact Form In Flex Part 1
Finding Good Free Hosting Can Be Frustrating And Costly. - Simple free hosting is anything but. It could cost you dearly.
Perl For Automated Web Form Search
Making A Simple Signature With Adobe Photoshop - A tutorial to basic signature designing: By Accure
Vb 2008 Linking To Another Form..
A Simple Preg_replace Help Please.
Simple Javascript And Password System - How to protect your pages with password
How Often Do You Use Css? - As opposed to using simple <font> and <div> tags
Php Ftp Upload Form - Adding User Directory to PHP Upload Form - Help
Simple Php Login And Registration System
Very Simple Online Now Script - This is a very simple online now script.
What Is A Computer Form Factor
Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?
Watermark Your Image With Simple Php Script - found it on the net
Simple C File Handling In Action - Small code snipet which covers most of basic file handling and navigat
Simple Sig Tutorial - photoshop sig tutorial : New to photoshop?
Verifying Email Addresses - Using a simple PHP script
Form To Php Mail. Attachment
How To: Change Your Website's Index File - a simple trick using .htaccess
Simple Login In Visual Basic 6 - user interaction example trough login programm
Php Calculator - Simple but cool.
Free Windowsxp Sp2 Cd From Microsoft - just fill the request form and recive it
advertisement



Help With Simple Php Form



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE