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

  • Home
  • SEARCH
  • 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 6217005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:20:58+00:00 2026-05-24T07:20:58+00:00

Here’s the html: <form action=php/buzz_data.php method=get> <div>Image: <input type=text name=buzz_img size=30 /></div> <div>Link: <input

  • 0

Here’s the html:

<form action="php/buzz_data.php" method="get">

    <div>Image: <input type="text" name="buzz_img" size="30" /></div>
    <div>Link: <input type="text" name="buzz_link" size="30" /></div>
    <div>Description:  <textarea rows="5" cols="30" name="buzz_desc"></textarea></div>
    <div>Title: <input type="text" name="buzz_title" size="30" /></div>

    <input type="submit" value="Submit" />
    <input type="submit" value="Clear" />

</form>

Here’s the php:

<?php
$con = mysql_connect("localhost","***","***");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("ubook247", $con);

$sql="INSERT INTO buzz_data (buzz_page_title, buzz_img, buzz_link, buzz_desc, buzz_title)
VALUES
('$_POST[buzz_page_title]','$_POST[buzz_img]','$_POST[buzz_link]','$_POST[buzz_desc]','$_POST[buzz_title]')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";

mysql_close($con)
?> 

and here’s the result:

Notice: Undefined index: buzz_img in C:\wamp\www\ubook247\php\buzz_data.php on line 12

Notice: Undefined index: buzz_link in C:\wamp\www\ubook247\php\buzz_data.php on line 12

Notice: Undefined index: buzz_desc in C:\wamp\www\ubook247\php\buzz_data.php on line 12

Notice: Undefined index: buzz_title in C:\wamp\www\ubook247\php\buzz_data.php on line 12

1 record added

The db and table are both correctly set up as a new record was created, it just didn’t add the data from the inputs.

  • 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-05-24T07:20:58+00:00Added an answer on May 24, 2026 at 7:20 am
    <form action="php/buzz_data.php" method="get">
    

    You are using GET, so access the values from the $_GET[] variable, not from $_POST[]. Or you can change the method to "post".

    Also, say hello to Bobby Tables!

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

Sidebar

Related Questions

Here's a problem I ran into recently. I have attributes strings of the form
Here is my code, which takes two version identifiers in the form 1, 5,
Here is what I want to do. Use this HTML line and have the
Here is what I am trying to achieve in PHP: I have this string:
Here is my question. I am having this simple menu. <div id=menu> <ul> <li>
Here is a snippet of my xaml: <ComboBox x:Name=cbo1 Width=100 SelectedValue=200> <ComboBoxItem Name=n1>100</ComboBoxItem> <ComboBoxItem
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Here is my code: <?php $variable1 = 00001; $variable2 = (sprintf('%04d', $variable1 + 1));
Here is the field declaration in a form: max_number = forms.ChoiceField(widget = forms.Select(), choices
Here is binding: <Image Width=16 Height=16 Source={Binding SwitchForImage, Converter={StaticResource stringToImage}} HorizontalAlignment=Left> </Image> and here

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.