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 7905695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:34:18+00:00 2026-06-03T10:34:18+00:00

As far as I can tell, clicking on submit button does not take me

  • 0

As far as I can tell, clicking on submit button does not take me to the next page.

Here is add_product.php which is included in ./admin/index.php and this is the form I have a problem with:

<div class='content'>
<form type='./inc/add_sql.php' method='POST'>

Name: <br/>
<input type='text' name='name' /><br/><br/>

Discription: <br/>
<textarea rows='10' cols='32'  name='discription'>
</textarea><br/><br/>

Price (&pound;): <br/>
<input type='text' name='price' /><br/><br/>

Use Stock Values?<br/>
<input type='radio' name='use_stock' value='1' /> Yes &nbsp
<input type='radio' name='use_stock' value='0' /> No <br/><br/>

Image Text: <br/>
<input type='text' name='img_alt' /><br/><br/>

Thumbnail Text: <br/>
<input type='text' name='thumb_alt' /><br/><br/>

Stock Level (Optional)<br/>
<input type='int' name='stock' /><br/><br/>

<input type="submit" value="Submit">
</form>
</div>

and add_sql.php (from above)

<?php
include './sql_connect.php';

$name = mysql_real_escape_string($_POST['name']);
$discription = mysql_real_escape_string($_POST['dicription']);
$price = mysql_real_escape_string($_POST['price']);
$use_stock = mysql_real_escape_string($_POST['use_stock']);
$img_alt = mysql_real_escape_string($_POST['img_alt']);
$thumb_alt = mysql_real_escape_string($_POST['thumb_alt']);
$stock = mysql_real_escape_string($_POST['stock']);

$mysql = mysql_query("INSERT INTO `products`(`name`, `dicription`, `price`, `use_stock`, `img_alt`, `thumb_alt`, `stock`) VALUES ({$name},{$discription},{$price},{$use_stock},{$img_alt},{$thumb_alt},{$stock})");

if (!mysql_query($mysql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added <a href='./?add_products'>continue</a>";

mysql_close($con);
?>

can anyone see what is wrong here?

  • 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-03T10:34:19+00:00Added an answer on June 3, 2026 at 10:34 am
    <form type='./inc/add_sql.php'
    

    should be:

    <form action='./inc/add_sql.php'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this trigger which works functionally (as far as I can tell by
As far as I can tell i'm doing everything by the book, but the
As far as I can tell, there is no API (official or unofficial) to
As far as I can tell, Scala has definitions for the Enumeration Value class
As far as I can tell, this code is fine, and should display some
As far as I can tell I wouldn't think it would make any difference
That's basically it, as far as I can tell. I can include or require_once
I am an MVC newbie. As far as I can tell: Controller : deals
I'm pretty new to QGraphicsView in Qt. As far as I can tell there
As far as I can tell both provide an onion layer mechanism and pass

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.