Form Submission

What URL do I use to submit a form?  I'm using dreamweaver cc 2018.  Do I still need php to communicate this for submission?  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.

zephyr_hex (Megan)DeveloperCommented:
The "url" you use for form submission is the location of the server side code (in this case, a PHP file) that will accept the POSTED form fields and do something with them, such as save them to a database.

So, for example:

<form action="helloworld.php" method="post">
<input name="MyField" >
<button type="submit">Submit</button>

Open in new window

The "action" attribute of the form holds the value of the file that will process the form fields.  In this example, that file is called "helloworld.php" and it's located in the same directory.

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
Misty CorningAuthor Commented:
Thank you!  That actually does help and confirms some questions I had.
Misty CorningAuthor Commented:
On my radio buttons, how do I "hide" the circle and just have the words displayed?  Thanks!
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

zephyr_hex (Megan)DeveloperCommented:
If you don't want the radio button to show, hide it.  You can use CSS to do that.

<input type="radio" style="display:none;">

Open in new window

Misty CorningAuthor Commented:
Thank you.  I see that radio buttons are for selecting just one.  Is there a certain code I need for checkboxes or radio to indicate which one they want?
Misty CorningAuthor Commented:
I am trying to get certain fields to allow the user to select more than one.
zephyr_hex (Megan)DeveloperCommented:
If you want the user to be able to select more than one, then you want to use checkboxes and not radios.  Radios are meant to allow only single select options.

You can change a radio into a checkbox by changing the input "type" attribute.

<input type="checkbox">

Open in new window

Misty CorningAuthor Commented:
Good.  I did it right.  When connecting, it shows:  The URL prefix "/" of your testing server does not match the URL prefix "/racial profiling/" of your site.  since you are using site relative link it is possible that your links display incorrectly at runtime.  You can edit the Web URL in your server settings.

I have tried to edit these fields, but things don't seem to work.  How do I fix this?  Do I need to send screen shots?  Thanks!
zephyr_hex (Megan)DeveloperCommented:
It sounds like you need to adjust your links.  If you're using relative links, the location that a link refers to on your test server may not match the location it refers to on your production site.

You can read more about relative links here:
Misty CorningAuthor Commented:
ok, thanks.  I'm trying to connect Dreamweaver cc 2018 to sql server.  How do I run the connection string?
zephyr_hex (Megan)DeveloperCommented:
You may want to open another question for that.  I know very little about Dreamweaver.
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
Web Development

From novice to tech pro — start learning today.