Jump to content

hello , i have a problem with form submit button/input

- - - - -

  • Please log in to reply
3 replies to this topic

#1
alrazy1

alrazy1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
the problem is that i want to put utf-8 chars "arabic language" in the submit button ,
but when i do that the form doesnt submit anything !
i have a php webpage i have included the utf-8 in the meta :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

the form look like this :
<form action="" method="post">
<h1>!لست عضوا بعد ؟ سجل هنا if you arnt member yet please register here:</h1>
<label class="grey" for="username">username: اسم المستخدم:</label>
<input class="field" type="text" name="username" id="username" value="" size="23" />
<label class="grey" for="email"> الايميلemail :</label>
<input class="field" type="text" name="email" id="email" size="23" />
<label>we will send you email with your password.سنبعث لك كلمة السر لايميلك</label>
<input type="submit" name="submit" value="Register" class="bt_register" />
</form>
the arabic utf-8 chars look perfect in the <h1> for example , the only problem i cant put arabic
word in the last <input> element in the value proporty , even if i dont capetalize the first letter in english the form dont submit anything also , this for only work when i use english words like "Submit,Agreed..." it dont work if i put in the value "submit,agreed..." and it dont submit anything also as i said if i put non-english language word or chars like arabic/hebrew...
best regards.

#2
alrazy1

alrazy1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
sorry i forget to say its .php page not html page...

#3
mrlemke

mrlemke

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
  • Location:Redding, CA
Hm, it looks like your form isn't going anywhere for the submit. In action="", do you actually have the form going somewhere and you are just hiding the page from us?

#4
alrazy1

alrazy1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
hello
the problem is solved , the problem was in my php code wich chick the submit value "i changed the value of the submit button in html and forgot to change it in the php to the new arabic value that was the problem made me thought wrongly that the form isnt submitting arabic or non-english posted values...."
hi daniel-lemke thank you for trying helping me , regarding the action="" that because the form posted values is submitted to the same php page
... i didnt showed here the full php web page i showed only the html section in my php page because its too big and i thought wrongly the problem is in the html not the php...
thank you again
best regards




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users