![]() |
PHP - Need this code adjusted fast! - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: PHP (https://sinister.ly/Forum-PHP) +--- Thread: PHP - Need this code adjusted fast! (/Thread-PHP-Need-this-code-adjusted-fast) |
PHP - Need this code adjusted fast! - Dawnc0re - 10-18-2012 Hay. I need a lil help here with php code, here it goes. I need this code: PHP Code: <?php To be adjusted to do the following -To only accept the variables : "email" and "pass" and their "value" -one line - one pair -> pair of "email:$value" and ext line -> same for "pass:"$value" and next line -Bold the "email" and "pass" It's a project given by my school teacher, just i can't get it working so i had to post it here... This means much to me ![]() Thank you ![]() PHP - Need this code adjusted fast! - Dawnc0re - 10-18-2012 Hay. I need a lil help here with php code, here it goes. I need this code: PHP Code: <?php To be adjusted to do the following -To only accept the variables : "email" and "pass" and their "value" -one line - one pair -> pair of "email:$value" and ext line -> same for "pass:"$value" and next line -Bold the "email" and "pass" It's a project given by my school teacher, just i can't get it working so i had to post it here... This means much to me ![]() Thank you ![]() RE: PHP - Need this code adjusted fast! - H4R0015K - 10-19-2012 Here is your adjusted code. Code: <?php data will be added like this (only if you redirect a user to this page like this 'http://test.com/test.php?email=$value&pass=$value' and has you are redirecting like this it will only add email and pass.) : email:h4r0015k@hackcommunity.com pass:h4r0015k the code was not working for you because at the beginning of the code you added this piece of code 'header ('Location: http://www.website.com');' which tells the browser to visit 'http://www.website.com' without running code below it. RE: PHP - Need this code adjusted fast! - H4R0015K - 10-19-2012 Here is your adjusted code. Code: <?php data will be added like this (only if you redirect a user to this page like this 'http://test.com/test.php?email=$value&pass=$value' and has you are redirecting like this it will only add email and pass.) : email:h4r0015k@hackcommunity.com pass:h4r0015k the code was not working for you because at the beginning of the code you added this piece of code 'header ('Location: http://www.website.com');' which tells the browser to visit 'http://www.website.com' without running code below it. RE: PHP - Need this code adjusted fast! - Dawnc0re - 10-19-2012 About the website.com, that was for the public ![]() Thank you again for coding things for me : )) If i add header(location:...) after the others, will it work after it collects the data? RE: PHP - Need this code adjusted fast! - Dawnc0re - 10-19-2012 About the website.com, that was for the public ![]() Thank you again for coding things for me : )) If i add header(location:...) after the others, will it work after it collects the data? RE: PHP - Need this code adjusted fast! - H4R0015K - 10-20-2012 yup it will work........ RE: PHP - Need this code adjusted fast! - H4R0015K - 10-20-2012 yup it will work........ RE: PHP - Need this code adjusted fast! - Dawnc0re - 10-25-2012 I've reedited the code to my needs a little and it works perfectly ![]() Thanks again ![]() Im /Closing dis now ![]() |