Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

Hello everyone and thanks for coming here to help out. My issue here is that I need to some how put this variable (I am not even exactly sure if this is a variable, because I don't know much at all about angularJS, and is why I want to have the variables in php) from angularJS into php. You can see after the skipped line, I tried to import it

<h3>Disk size per drive (Gigabytes) : <select ng-model="raidtype">
<option value="0">Raid 0</option>
<option value="1">Raid 1</option>
<option value="5">Raid 5</option>
</select></h3>
<h2>Find {{raidtype}} of {{disks}} at the size of {{size}}</h2>

<?php
    echo "Importing into PHP...";
    $raidtype = {{raidtype}};
    echo $raidtype;
?>

This obviously doesn't work. I've tried other things, but they don't work. I'd also prefer if you could give me a solution that doesn't involve refreshing the page. Thanks!

share|improve this question
1  
Learn Ajax – adeneo 19 hours ago
1  
You need to learn the difference between server side and client side programming languages and how they work together. – Pitchinnate 18 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.