redirect to dynamic URL have PHP content in URL -



redirect to dynamic URL have PHP content in URL -

how redirect form dynamic url dynamic content

i start in php mode echo string , want variables in strings

i sorry if not clear . new php work servers , network found intrest in web designing rephrasing question first time registered forum first time . learned how show code . learning php hobby project making myself. learning

<a href="modify_pages.php?pages=<?php echo urlencode($current_pages["id"]); ?>"> modify page</a>

works fine copied sample code maintain simple not sure question length if supposed come in whole code please allow me know future if reqiured come in total code

<?php //current page id , current step id info sql database table page function redirect_to($new_location) { header("location: ".$new_location); exit; } if ($some_var1==$some_var2) { redirect_to("edit_pages.php?pages=<?php echo urlencode($current_step["id"])?>"); } else { redirect_to("edit_pages.php?pages=<?php echo urlencode($current_pages["id"])?>"); ?>

basic problem facing is possible utilize phptag or script logic in quotation marks ""

html " ; ?>

php《html《php》》nesting php , html

i looking help(workaround) because if can utilize php logics in quotation help me much shorten codes in future

not sure how create working please help me thankful helps

try this.

<?php $variable = 'maths'; ?> form_page.php?subject=<?php echo $variable; ?>

output be

form_page.php?subject=maths

php

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -