mikntwd Posted December 4, 2009 Report Share Posted December 4, 2009 Hi. I'm running this UniformServer for first time, ever.I have a web site which I would like to configure this UniformServer to collect the data from the forms at http://raider.grcc.edu/~keithwillson/final/quote.html How do I configure this to do so? thanks! Quote Link to comment Share on other sites More sharing options...
Ric Posted December 4, 2009 Report Share Posted December 4, 2009 I am not sure if I understand the problem!Looks like you are trying to intercept data from another site! Perhaps a little more detail would be useful and other members could help. All the bestRic Quote Link to comment Share on other sites More sharing options...
mikntwd Posted December 13, 2009 Author Report Share Posted December 13, 2009 Since my original post, I've moved the site (forms) in question to:http://www.sparklinginterior.com/quote.html I'd like to incorporate PHP to receive people's inquiry. There, they have to complete the form and submit.This is where I'd like to receive their information and I need help to incorporate that, a database. I've never done this before and will be using mySQL. Thanks! Quote Link to comment Share on other sites More sharing options...
Ric Posted December 13, 2009 Report Share Posted December 13, 2009 To get you started you require a page to process your form data.Create a new page named test.php this should be in the same location as quote.html Edit quote.html and locate this line:You currently have a blank action. This should point to the page that will do the processing. Hence change the line to: Currently you have a large number of form tags I assume you only want to submit a single form hence remove all form tags below the above. Keep the last form tag as shown below Your form-processing page will have the following format:<?php if (isset($_POST['first_name'])){ $first_name = $_POST['first_name']; // Validate print $first_name; } else{ // what to do if field is not set } // Similar for other inputs // If no code injection save to MySQL // Send something back to user ?>Like I said something to get you started. All the bestRic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
× Pasted as rich text. Paste as plain text instead
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.