Jump to content

PHP & Form Button -> submit weird error


aperantos

Recommended Posts

Hi , I have written in php a form for getting some
input from the user. I have 4 text area controls (along with a few other controls)
and at the end of the form 1 submit button (as normal!)
The weird thing is that when I fill 2 of the text areas the button
works perfectly (doing whatever is 2 do) while if I fill up all 4 text areas the button does nothing !
not even an error message...the form just sits there!!
any ideas ??

Link to comment
Share on other sites

I am only a noob myself but to help you i know this (need backing up from sum1 else ere :S)

firstly-it would make it easier to help you if you posted the code in the form file, and in the process file (the file that sends/handles the information that the user has inputted)-If It Is In A Seperate File.

I Am Guessing At First Reading What You Have Wrote, That The Names Of The Text Boxes On The Form Page Don't All Match To The Names When Being Processed-For Example:

(If Your Processing script and form script are in seperate files)

your error might be this:

instead of doing this:

[b]Form File:[/b]

<form bla bla bla>
<field stuff and then here is your prob... name="userpname">


[b]Info handling file:[/b]

$_POST['username'] = 'username'
//or the prob cud b ere
$_POST['passqword'] = 'password'

mysql_connect (localhost, username, password, ) or die (mysql_error());
mysql_connect_db (database name)

etc.


simple spellin mistake cud b ur prob ere.

to make it easier-cud u post the code (removin ne db info of course)

hope i helped-dont think i did sumhow :S

Pudgemeister
Link to comment
Share on other sites

well thanx guys ... for your help ...
the problem was not on spelling ...cause believe me
I 3ple checked.. !!!
I was using my form like this ...
<form ...... method = "get">

and of cource : $var = $HTTP_GET_VARS['var']

it seems that the 'get' method is limited as long as
passing text. () when I used the 'Post'  method it all
worked fine (-- unlimited word entry !!)

i.e.
<form ...... method = "post">
and of cource : $var = $HTTP_POST_VARS['var']


Now, I'm using GET only 4 passing 1-2 variables at most!!!
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.