Hello,
I would require some help with this html form which doesnt send information to the php file which is linked to it
HTML

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>RaffleCP</title>
    <link rel="stylesheet" href="css/body.css"/>

</head>
<body>
<!-- multistep form -->
<form id="msform" action="process.php" method="POST"  >
    <!-- progressbar -->
    <ul id="progressbar">
        <li class="active">Items</li>
        <li>Information</li>
        <li>Finalize</li>
    </ul>
    <!-- fieldsets -->
    <fieldset>
        <h2 class="fs-title">Item to raffle</h2>
        <h3 class="fs-subtitle">Please enter the desired item schema</h3>
        <input type="text" name="item1" placeholder="First item" />
        <input type="text" name="info1" placeholder="Attribute/info" />
        <input type="text" name="item2" placeholder="Second item" />
        <input type="text" name="info2" placeholder="Attribute/info" />
        <input type="text" name="item3" placeholder="Third Item" />
        <input type="text" name="info3" placeholder="Attribute/info" />
        <input type="button" name="next" class="next action-button" value="Next" />
    </fieldset>
    <fieldset>
        <h2 class="fs-title">Information</h2>
        <h3 class="fs-subtitle">Please enter information about raffle</h3>
        <input type="text" name="slots" placeholder="slots" />
        <input type="text" name="No" placeholder="Number of people" />
        <input type="text" name="Duration" placeholder="Duration" />
        <textarea name="otherinfo" placeholder="Other info"></textarea>
        <input type="button" name="previous" class="previous action-button" value="Previous" />
        <input type="button" name="next" class="next action-button" value="Next" />
    </fieldset>
    <fieldset>
        <h2 class="fs-title">Entry Fees</h2>
        <h3 class="fs-subtitle">Please enter the entry fees</h3>
        <input type="text" name="entfees" placeholder="Entry fees in credits" />
        <input type="text" name="entinfo" placeholder="Other Information" />
        <input type="button" name="previous" class="previous action-button" value="Previous" />
        <input type="submit" name="submit" class="submit action-button" value="Submit" />
    </fieldset>
</form>

<!-- jQuery -->
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>

Some help would be really appricated.
Thanks

Recommended Answers

All 6 Replies

Your form seems OK based on your description. When the submit button is clicked the "process.php" page tries to load.

You need to be more specific about "doesnt send information". Maybe you are not retrieving the posted data correctly?

Thanks for the quick responce.
Sorry i didnt mention before that it does not redirect to the linked file i.e. it does'nt load

Does it gives an error? like page not found.

Because you dont have the file "process.php" yet.
Just write this file with coresponding php code in it.

Member Avatar for diafol

Show the content of the php file. Have you installed php and are you running a web server?

This form send data but you cannot accept its. I think)

Be a part of the DaniWeb community

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