|
![]() |
#1 |
Milan Cvejic
Wrote a book
|
![]() evo vec dva sata lupam glavu i nikako da mi dodje
![]() ovo je forma: Kôd:
<form method="GET" action="http://localhost/process.php"> <tr><td>First Name:</td><td><input type="text" name="custom First Name" value="" size="20"></td></tr> <tr><td>Last Name:</td><td><input type="text" name="custom Last Name" value="" size="20"></td></tr> <tr><td>Email:</td><td><input type="text" name="from" value="" size="20"></td></tr> <tr><td>Address:</td><td><input type="text" name="custom Address" value="" size="20"></td></tr> <tr><td>Town:</td><td><input type="text" name="custom Town" value="" size="20"></td></tr> <tr><td>County:</td><td><input type="text" name="custom County" value="" size="20"></td></tr> <tr><td>Post Code:</td><td><input type="text" name="custom Post Code" value="" size="20"></td></tr> <tr><td>Phone Number:</td><td><input type="text" name="custom Phone Number" value="" size="20"></td></tr> <tr><td align="center" colspan="2"><input type="submit" name="submit" value="Submit"></td></tr> </table> </form> Kôd:
$custom_First_Name = mysql_real_escape_string($_GET["custom First Name"]); $custom_Last_Name = mysql_real_escape_string($_GET["custom Last Name"]); $from = mysql_real_escape_string($_GET["from"]); $custom_Address = mysql_real_escape_string($_GET["custom Address"]); $custom_Town = mysql_real_escape_string($_GET["custom Town"]); $custom_Country = mysql_real_escape_string($_GET["custom Country"]); $custom_Post_Code = mysql_real_escape_string($_GET["custom Post Code"]); $custom_Phone_Number = mysql_real_escape_string($_GET["custom Phone Number"]); ![]() Da li ima veze shto su npr. "custom Country" sastavljena od dve reci? ja mislim da ne bi trebalo.
__________________
http://weevify.com Poslednja izmena od LiquidBrain : 15. 09. 2006. u 19:28. |
![]() |
![]() |
![]() |
#2 |
Direktor Kombinata
Invented the damn thing
Datum učlanjenja: 07.06.2005
Poruke: 2.669
Hvala: 44
119 "Hvala" u 64 poruka
![]() ![]() |
![]() Mali eksperiment:
PHP kôd:
![]() Eh, da... Nije isto misliti i cveće brati.
__________________
activeCollab - Project Management and Collaboration Tool iz domaće kuhinje | area51.rs - Blog Poslednja izmena od Ilija Studen : 15. 09. 2006. u 19:56. |
![]() |
![]() |
![]() |
#3 |
Milan Cvejic
Wrote a book
|
![]() hm, vec sam to probao i nece
![]() ![]() grrrrrrrrrrr...
__________________
http://weevify.com |
![]() |
![]() |
![]() |
#4 |
Vladan Zirojević
Grand Master
|
![]() U process.php zamijeni $_GET["custom Post Code"] u $_GET["custom_Post_Code"] i tako za sve parametre.
Inace, razmaci i tacke nisu preporucljivi u PHP imenima parametara bas zbog ovakvih problema. |
![]() |
![]() |
![]() |
#5 |
Milan Cvejic
Wrote a book
|
![]() Hvala.
![]()
__________________
http://weevify.com |
![]() |
![]() |
![]() |
Alati teme | |
Način prikaza | |
|
|
![]() |
||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
ne radi mi $smarty.request ? | ivanhoe | PHP | 0 | 20. 02. 2010. 11:39 |
Usmeravanje svakog request-a na jedan fajl | _korso_ | Regular expression i htaccess | 2 | 21. 10. 2009. 23:11 |
Post request u drugom prozoru... | LiquidBrain | (X)HTML, JavaScript, DHTML, XML, CSS | 12 | 28. 06. 2007. 15:22 |
Invalid method in request (napad?) | ivanhoe | Web Hosting, web serveri i operativni sistemi | 9 | 14. 01. 2007. 11:07 |
Invalid URI in request | Mr.Paja | Web Hosting, web serveri i operativni sistemi | 0 | 23. 05. 2006. 08:21 |