Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9272565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:54:09+00:00 2026-06-18T15:54:09+00:00

I have this form: <form action=index.php?type=add_lesson&type=add method=post> <?php echo $lesson_title; ?><br/><input type=text name=title style=width:450px;

  • 0

I have this form:

<form action="index.php?type=add_lesson&type=add" method="post">
                <?php echo $lesson_title; ?><br/><input type="text" name="title" style="width:450px;" /><br/>
                <?php echo $lesson_url; ?><br/><input type="text" name="url" style="width:450px;" /><br/>
                <?php echo $keywords; ?><br/><input type="text" name="kewyords" style="width:450px;" />
                    <br/><br/><br/>
                    <input type="submit" value="<?php echo $submit;?>" class="button"  /></form>

and this index.php code:

if($_GET['type'] == "add_lesson"){
        include_once(fls."add_lesson.php");
    }

and this add_lesson.php code:

if($_GET['type'] == 'add'){
    $title    = htmlspecialchars($_POST['title']);
    $url      = htmlspecialchars($_POST['url']);
    $kewyords = htmlspecialchars($_POST['kewyords']);
        $sql = $mysqli->query("INSERT INTO LESSONS(L_TITLE,L_URL,L_COMMENTS,L_VIEWS,L_KEYWORDS)
                                VALUES('".$title."','".$url."','0','0','".$kewords."') ");
        echo $added_sucessfully;
}

but when I click submit I get white page
what is the problem??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:54:10+00:00Added an answer on June 18, 2026 at 3:54 pm

    You have error in your code: include_once(fls.”add_lesson.php”); probably you ment include_once($fls.”add_lesson.php”);

    Also make sure your php installation shows php errors. Probably you have Fatal PHP Error that is not displaying.

    Here is simple tutorial to follow to make sure you see php errors:
    http://www.wallpaperama.com/forums/how-to-display-php-errors-in-my-script-code-when-display-errors-is-disabled-t453.html

    Another thing.. You have

    <form action="index.php?type=add_lesson&type=add" method="post">

    So you get only type=add in PHP 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this HTML: <form action='uploadhandle.php' method='POST' enctype=multipart/form-data> <input type='file' class='fileinput' id='photo1' name='photo1'> <input
I have a form that looks like this. <form action=index.php method=post> <select name=dropdownOption> <option
I have form like this: <form method=POST action=<?php echo base_url() ?>admin/admin_search> <fieldset> <label for=nalozi>Nalozi</label><input
I have a simple form like this: <form name=serachForm method=post action=/home/search> <input type=text name=searchText
I have navigation form with 4 submit buttons. <form action=index.php?do=move method=post> <center> <input name=north
i have this html <ul> <li><form action=# name=formName></li> <li><input type=text name=someName /></li> <li><input type=text
I have the following form that has 2 selects: <form id=form class=form_visitar method=post action=ajax/selects.php>
I have this code for form submit: index.php <html> <head> <title>My Form</title> <script type=text/javascript
I have a form to upload image like below <form name=sample enctype=multipart/form-data action=index.php method=post
I have a code javascript of a action form: <form name=myform onsubmit=return OnSubmitForm(); method=post>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.