hi guys, well i am using .htaccess in my website to make SEO friendly urls..
the urls are supposed to look like this:

it is working nicely.. the problem is when i came to makin forms..
how should i submit my forms??
the .htaccess takes all the requests as a files and redirects all the calls to index.php
here is my .htaccess file that i made:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?url=$1 [L]

and here is my form:

<u><center><h1>Sign Up!</h1></center></u>

                    <form method="post" action="signup/process/">
                        <label for="Name">First Name:</label>
                        <input type="text" name="Name1" id="Name" />

                        <label for="Name">Last Name:</label>
                        <input type="text" name="Name2" id="Name2" />

                        <label for="City">Email:</label>
                        <input type="email1" name="Email" id="Email" />
                        <label for="City">Re-enter Email:</label>
                        <input type="email2" name="Email2" id="Email2" />
                        <label for="Email">New Password:</label>
                        <input type="password" name="Password" id="Password" />
                        <label for"I am">I am:</label> 
                        <select name="iam" id="select" style="height: 50px;">
                            <option id ="select">Male</option>
                            <option id="select">Female</option>
                        <label for="birthday">Birthday</lable>
                                <tr><td><select name="bday" id="select_small">
                                        <select name="bmonth" id="select_small">
                                    <td><select name="byear" id="select_small">
                                            <option id ="select">Year:</option>
                                            <option id="select">1990</option>


                            <input type="submit" name="submit" value="Submit" class="submit-button" />


so please tell me what is wrong with my code above??
whenever i submit something, the url looks as follows:

it torally doesn't make sense to me! please tell me wt to do...
thanks to anyone who tries to help me..

Recommended Answers

All 2 Replies

Member Avatar

I'd send the form to signup.php and then redirect back to your modified url page. No need to send form through index.php

page. No need

it would work? let me try that..
thanks for the reply!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.