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

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.
0
 
Misty CorningAuthor Commented:
Thank you!  That actually does help and confirms some questions I had.
0
 
Misty CorningAuthor Commented:
On my radio buttons, how do I "hide" the circle and just have the words displayed?  Thanks!
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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

0
 
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?
0
 
Misty CorningAuthor Commented:
I am trying to get certain fields to allow the user to select more than one.
0
 
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

0
 
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!
0
 
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:
https://helpx.adobe.com/dreamweaver/using/linking-navigation.html#WScbb6b82af5544594822510a94ae8d65-7c42a
0
 
Misty CorningAuthor Commented:
ok, thanks.  I'm trying to connect Dreamweaver cc 2018 to sql server.  How do I run the connection string?
0
 
zephyr_hex (Megan)DeveloperCommented:
You may want to open another question for that.  I know very little about Dreamweaver.
0
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.

All Courses

From novice to tech pro — start learning today.