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;
 
Link to comment
Share on other sites

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']);

 

 

 

Link to comment
Share on other sites

 

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 :/

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

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.