Action URL?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Action URL?

Postby timstring » 17. September 2010 02:23

I know I'm a dum Aggy, and I've been using a Mac for so long, I no longer am able to speak in Geek. :D I'm trying to design a simple database in MySQL, using KompoZer to design the entry form. In designing the form, KompoZer wants to know the "Action URL." What do I use? I've tried everything I can think of! 8)
"If builders built buildings the way that programmers write programs, the first woodpecker to come along would destroy civilization."
User avatar
timstring
 
Posts: 22
Joined: 17. September 2010 02:16

Re: Action URL?

Postby MegaChriz » 17. September 2010 09:27

For a (web)form an action URL is the URL the form should be posted to when submitted. The page at that URL should process the form. It happens often that the action URL is the same as the URL where the form is on (so when there are validation errors they can be shown on the same page the form was on). For further help, I think you should better ask this question in the KompoZer support forums.
MegaChriz
 
Posts: 158
Joined: 16. February 2009 15:04
Location: Amersfoort, The Netherlands
XAMPP Version: 1.8.3-3
Operating System: Mac OS X

Re: Action URL?

Postby Nobbie » 17. September 2010 11:23

Nobbie
 
Posts: 6467
Joined: 09. March 2008 13:04

Re: Action URL?

Postby timstring » 18. September 2010 02:16

I know what an action URL is supposed to do. What I need to know is the default URL for the MySQL database I created with XAMPP
"If builders built buildings the way that programmers write programs, the first woodpecker to come along would destroy civilization."
User avatar
timstring
 
Posts: 22
Joined: 17. September 2010 02:16

Re: Action URL?

Postby MegaChriz » 18. September 2010 08:06

Okay, now you are more clear! :)

A database URL looks like this:
Code: Select all
mysqli://username:password@localhost/databasename

or this if mysqli for some reason can't be used:
Code: Select all
mysql://username:password@localhost/databasename


When you use a MySQL account without a password (in XAMPP the MySQL root user has no password by default) you can leave out the password and then the database URL looks like this:
Code: Select all
mysqli://username@localhost/databasename
If you use the MySQL root user in XAMPP, the username is 'root'.
MegaChriz
 
Posts: 158
Joined: 16. February 2009 15:04
Location: Amersfoort, The Netherlands
XAMPP Version: 1.8.3-3
Operating System: Mac OS X

Re: Action URL?

Postby timstring » 18. September 2010 12:34

When I try those URL's, Firefox gives me the message: "Firefox doesn't know how to open this address, because the protocol (mysqli) isn't associated with any program." How do I change the associations?

tanksalot,
tim
"If builders built buildings the way that programmers write programs, the first woodpecker to come along would destroy civilization."
User avatar
timstring
 
Posts: 22
Joined: 17. September 2010 02:16

Re: Action URL?

Postby Altrea » 18. September 2010 13:29

You can't send a form directly to a database.
Like MegaChriz said before, you need to process the sended data from the form, connect to a database (for example with php functions) and send your processed data with querys to the database.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6471
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests