Jump to content
The Uniform Server Community

Web Form Data


mikntwd
 Share

Recommended Posts

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 best

Ric :)

Link to comment
Share on other sites

  • 2 weeks later...

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!

Link to comment
Share on other sites

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 best

Ric :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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

Loading...
 Share

×
×
  • Create New...