Jump to content

objection


HAN!

Recommended Posts

i really dont know what is the use of this forum, i have posted my simple question from half an hour and i didnt get any answer yet, well i dont understand how this is a help forum.

i just want to know how to use arrays in forms.

Link to comment
Share on other sites

im using a value of input box of a form in a php array, how i can do this?

<?PHP
include"connection.php";
$query="SELECT * FROM registration";
$result=mysql_query($query);
$num=mysql_num_rows($result);


for($i=0;$i<$num;$i++)
{
if($_POST['type'][$i]=='a') //this is where i get it from the form: type.
{
$first=mysql_result($result,$i,"First Name");

$query1="INSERT INTO administrator  VALUES ('','$first')";
mysql_query($query1);
}
}

 

 

Link to comment
Share on other sites

And to enable the non-telepaths out here to verify that code, what does your form code look like?

 

 

WOW! 30 minute wait. Are you under the illusion that we are on your payroll and jump whenever you post? And if you can't be bothered to give a reasonable amount of detail regarding your problem, why should we struggle to guess, and maybe waste time answering the wrong problem.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.