[Solved] Registering a new user [closed]

[ad_1] Next time, please try to include more details into your question and conduct a bit more research as this is a relatively easy answer to find out for yourself. If you are using a SQL database you should be triggering a SQL QUERY whenever the Sign Up button is pressed — assuming that all … Read more

[Solved] How to write regex in php for changing content?

[ad_1] Hey that sort of looks like JSON! <?php $file=” string PackageToRun[][] = { {“M16.1″,”M16.1EP1″,”M16.2″,”M17”}, {“Tv16.2″,”Tv17″,”Ta17″,”Ta16.2 MOpenTAS”,”Tv17.1″,”Ta17.1″,”T16.2″,”T16.2c”} }; “; if( preg_match(‘#string PackageToRun\[\]\[\] = ({.*});#is’, $file, $matches)) { $data = json_decode(str_replace(array(‘{‘,’}’), array(‘[‘,’]’), $matches[1])); print_r($data); } Output: Array ( [0] => Array ( [0] => M16.1 [1] => M16.1EP1 [2] => M16.2 [3] => M17 ) [1] … Read more

[Solved] submit a form with php and provide response to user with ajax

[ad_1] I am not sure what you need exactly but I see the “data:” is empty, you can use serialize to post all input data in your form to your php, like this: here is a test form: <form id=”createaccount”> <input type=”text” name=”a” id=”a”> <input type=”submit” value=”Submit”> </form> here is your javascript part: $(“#createaccount”).submit(function(){ $.ajax({ … Read more

[Solved] Create a simple php array using mysql rows… [closed]

[ad_1] Here’s a technic : <?php // Query the database SELECT product_id FROM product // Loop $Products = array(); while(){ $Products[] = $Row->product_id; } print_r($Products); ?> Try something by yourself. Use PDO extension to create your query and then use the method fetch to get your data in the loop. 0 [ad_2] solved Create a … Read more

[Solved] Why is my textbox not populating?

[ad_1] You need value for $new_customer. <?php $new_customer = $_POST[search]; ?> Unless you assign value to $new_customer, you can’t print it in html. 3 [ad_2] solved Why is my textbox not populating?

[Solved] Military Discounts PHP [closed]

[ad_1] Depending on the nature of your business the easiest way would be to establish identity upon account creation using military ID or something similar. For what I’m assuming is security reasons there is no known system to check validity of a service claim programmatically. 1 [ad_2] solved Military Discounts PHP [closed]