Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7920169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:06:53+00:00 2026-06-03T16:06:53+00:00

I have an echo statement that is supposed to run a specific amount of

  • 0

I have an echo statement that is supposed to run a specific amount of times, i.e ‘n’ times, right now the function abc() is empty, for testing purposes, what I’m trying to to is this:-

echo "
<form  method=\"post\" action=\"<?php abc(); ?>\"  >
<input type='text' name='comment' style='width: 80%;height: 70px; margin-left: 60px' /> <br/>
<input type='submit' value='submit comment' style='margin-left:60px' />
</form>
";

but every time I click the button to submit the form I get the error

Forbidden

You don’t have permission to access /< on this server.

If what I am trying to do isn’t possible, is there an alternative way?

What I want to do is; create a button which, when clicked, calls a php function (which may or may not reload the page, doesn’t really matter). There will be multiple functions created via a loop and for each loop iteration the values passed to the function will be different. By values, I don’t mean variable types, I mean variable values will be different. I know there aren’t any variables passed to the abc function at the moment, but like I said, abc function is for testing only to try to get past the forbidden error.

What I am actually trying to do is this..

$doubleinverted='"';
echo "
<form action=".$doubleinverted."<?php f_comment(".$row['ScrapId'].",'".$row1['Email']."');?>".$doubleinverted." method='post'>
<input type='text' name='comment' style='width: 80%;height: 70px; margin-left: 60px' /><br/>
<input type='submit' value='submit comment' style='margin-left:60px' />    
</form>
";

I know you can add inverted commas like \", but I just found that out.

Also, this echo statement will be in a loop and for each iteration, the values passed to the function will be different

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:06:57+00:00Added an answer on June 3, 2026 at 4:06 pm
    echo "
    <form  method=\"post\" action=\"<?php abc(); ?>\"  >
    <input type='text' name='comment' style='width: 80%;height: 70px; margin-left: 60px' /> <br/>
    
    <input type='submit' value='submit comment' style='margin-left:60px' />
    
    </form>
    
    ";
    

    The action of the form is <?php abc(); ?> while you are already in PHP mode. I’m afraid I can’t let you do that Dave!

    Change the form to <form method=\"post\" action=\"' . abc() . '\" >

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a include statement that returns an echo to the browser of a
I have this foreach statement that is supposed to cycle through an array, but
I have the following echo statement that displays a numerical value from a session:
How does one catch/echo the insert results? I have a insertion statement that say
For example, if I have an echo statement, there's no guarantee that the browser
Possible Duplicate: capturing echo into a variable I have a function that echos a
I have the following echo <span>.apply_filters( $value\n, $value).</span>; that outputs <span>Value</span> <span>value 2</span> <span>value
I have a PHP file with one simple echo function: echo 'アクセスは撥ねりません。'; but when
I have an ant target that echo's the content of an eclipse .project file,
I have an if statement that needs to check if a series of items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.