Form Submission

I'm using Dreamweaver cc 2018.  How do I connect with SQL server?  Also, I have my code in html.  How do I add the PHP form submission to this?  Thanks!!
Misty CorningAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
Do you need how to connect to SQL Server from Dreamweaver, If yes then
1. Setup a DSN on the remote server
2. Then, In Your Application pane, go to Databases (which you probably already knew)
2. Click on the OLE DB Connection
3. For the Connection String box (see box below), type in your dsn, with the syntax of . . .
dsn=yourdsnname
4. Click OK and it should work.

Open in new window

from - http://www.dbforums.com/showthread.php?989091-How-to-connect-SQL-Server-using-Dreamweaver
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Dreamweaver is your IDE (Code editor).  It is used to create and edit your html, css, js and php code.  

Your html will start out something like this
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>test</title>
</head>
<body>

</body>
</html>

Open in new window


Your form code will go inside the body tag
<form methhod="post" action="process.php">
   <input name="first_name">
   <button type="submit">Submit</button>

</form>

Open in new window

All together

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>test</title>
</head>
<body>
<form methhod="post" action="process.php">
   <input name="first_name">
   <button type="submit">Submit</button>

</form>
</body>
</html>

Open in new window


You can name the above, home.php or whatever you want.

Next you need a page called process.php
<?php
// THIS IS A VERY BASIC EXAMPLE AND SHOULD NOT BE USED FOR PRODUCTION

$name = $_POST['first_name'];

echo $name;
// add your sql code here

Open in new window


Work on one thing at a time.  Start here and once you get this working, you can move to adding data.  But there is a lot to know here.  

A good start is https://www.codecademy.com/catalog/language/html-css  Then move to learning js, php and mysql.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pawan KumarDatabase ExpertCommented:
Provided multiple solutions.
Question abandoned.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.