Form action

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Mon Jul 15, 2013 5:09 am

Form action

Postby spherecraft » Mon Jul 15, 2013 5:15 am

In html and php.

for example most of the tutorials when creating a form the format is like this

<form action="signup.php" name="test">

i want it like <form action="/signup" name="test"> or <form action="signup" name="test">

as you can see the extension is removed and has a trailing slash before the word "signup"

How can i do it? Thanks! :)

User avatar
php-forum Active User
php-forum Active User
Posts: 255
Joined: Sat Mar 23, 2013 8:24 am

Re: Form action

Postby Strider64 » Mon Jul 15, 2013 6:05 am

Code: Select all

<form  action="signInForm.php" method="post" >

First of all most tutorials are done that way (I would suggest you brush up on them some more) and second to get what you want you will have to do configuration to the .htaccess file.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests