Jump to content

Php error Undefined Index


jiameow

Recommended Posts

Ok, than, put it this line of code immediately after $service = protect($_POST['services']); submit the form and give me back the result:

 

 

echo "<input type=\"submit\" name=\"submit\" value=\"Finish Registration!\" />";
echo "</form>";

}else {

$service = protect($_POST['services']);
 
// here
 
echo '<pre>'.print_r($service, true).'</pre>'; exit;
 

Ok , and now:

 

 

echo "<input type=\"submit\" name=\"submit\" value=\"Finish Registration!\" />";

echo "</form>";



}else {
 
// here

 

echo '<pre>'.print_r($_POST['services'], true).'</pre>'; exit;


$service = protect($_POST['services']);

 

 

 

 

Ok , and now:

 

 

echo "<input type=\"submit\" name=\"submit\" value=\"Finish Registration!\" />";

echo "</form>";



}else {
 
// here

 

echo '<pre>'.print_r($_POST['services'], true).'</pre>'; exit;


$service = protect($_POST['services']);

 

still the same :/

You had an error inside the input field.

 

See, what result I got when I copy/paste the code to my NetBeans and open up in firebug:

 

 

<input type="\"text\"" style="width:400px;" name="\"services\"">

 

There was to much posting here, sorry about it :)

thanks for your help we already solved it.. thanks alot for your kindness :D

 

Have you ever had the frustrating experience of searching Google with a problem only to find dozens of people asking the question but no one posting a solution to it.

 

Now you can see why this happens

This type of post is why I stopped coming here a while ago. I'm starting to wonder why I did.

 

I don't agree with you.

 

Phpfreaks is a very useful and interesting forum.

 

I think that's why, you are come back.

 

I like the people like OP and don't like the people like these.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.