php script + not displaying webpage


 
Thread Tools Search this Thread
Top Forums Web Development php script + not displaying webpage
# 1  
Old 03-04-2009
php script + not displaying webpage

Hi guys

Im in the process of designing a website for my company which does the following

1) Daily execution a perl script. The perl script's output is diverted to a .html file.

2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio buttons are given the same name to show grouping)

3) When clicking on one of the radio buttons, a .php script is executed which should show a webpage with a simple message in it.

The html code for the part with radio buttons is

Code:
<form action = "process.php" method="post">
<br/>
<input type="radio" name="group"  value = "member1"/>
<br/>
<input type="radio" name="group"  value = "member2"/>
<br/>
<input type="radio" name="group"  value = "member3"/>
</form>


And the .php script code (which is a separate .php file) is

Code:
<?php

print "<p>";
print "hello world";
print "</p>";

?>

I have executed this under the main html directory of my machine, so Im not sure what I could be doing wrong.
# 2  
Old 03-04-2009
Ok an update on my situation

I read over HTML forms again and realised that in order for something to happen, data must be submitted

So I added an <input type='submit' value='Submit'> to my form and changed the method in <form> to get.

This enabled the server to reach the stage where process.php is being called, however unfortunately Im still not able to see the simple webpage generated by my .php script
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running php index.php as shell in webpage

so i have a bit of a unique situation. i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code. when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies

2. Web Development

Display received sms on webpage - php

Hello, Scenario: Send sms from putty and display it on webpage. I have rented an short message service from a company and set callback url to my vps. PHP is installed in my vps . my mobile phone is: ********85** receipent mobile phone is: 49********* callback url is redirected to... (0 Replies)
Discussion started by: baris35
0 Replies

3. Shell Programming and Scripting

Executing Shell Script from PHP Webpage

Hello , I am trying to execute a small shell script from a PHP Webpage. Below is the shell script : 1.sh $ cat /home/oracle/rahul/1.sh #!/bin/ksh echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt echo "Run successfully script"; Below is the PHP... (1 Reply)
Discussion started by: rahul2662
1 Replies

4. UNIX for Dummies Questions & Answers

How to submit form on an php webpage from command line?

Hello, i have page domain.com/form.php the form fields on form.php are named: name=ipaddress name=port and submit button is named: submit i want to ask how the linux command will look like to submit the form filled with: ipaddress: 127.0.0.1 port: 80 I tried various curl and... (5 Replies)
Discussion started by: postcd
5 Replies

5. Shell Programming and Scripting

Use Webpage to Start Script

I apologize if this is in the incorrect section, I'm not quite sure which section it should go in. Anyways... I've got a script that I'd like to be able to start with a webpage, something that just has a button that says "Start this Bot", which will start the bot and put it in the background.... (4 Replies)
Discussion started by: JoeGazz84
4 Replies

6. UNIX for Dummies Questions & Answers

svn not displaying author name webpage

I am running Ubuntu Lucid, I installed Subversion (svn 1.1.6) and apache2.2.14, it is working fine I could commit repository. The problem is, on the web page it is not showing the Author name and modifies date. What am I missing? What am I doing wrong? Can you help please? (0 Replies)
Discussion started by: hassan1
0 Replies

7. Shell Programming and Scripting

how to convert a shell script to a php script for displaying next word after pattern match

I have a shell script which I made with the help of this forum #!/bin/sh RuleNum=$1 cat bw_rules | sed 's/^.*-x //' | awk -v var=$RuleNum '$1==var {for(i=1;i<=NF;i++) {if($i=="-bwout") print $(i+3),$(i+1)}}' Basically I have a pages after pages of bandwidth rules and the script gives... (0 Replies)
Discussion started by: sb245
0 Replies

8. Web Development

[php] webpage with login & mysql-db

Hi all, What I was looking for before was a multi-user password manager, web-based! The offer of free or cheap tools of this kind is very pover. Or they are too complex (or too expensive) I'm not a web programmer but I now decided to set up a (php) website with login and based on this login... (1 Reply)
Discussion started by: thibautp
1 Replies

9. Shell Programming and Scripting

Run a script from a webpage

Hello, I was trying to run a shell script when I click on webpage link. My webpage is hosted on Sun One web server. This is something I was looking, Chris Johnson's Test Bed I already have my shell script and it works fine when I run it from the command line. Can somebody tell me what are... (3 Replies)
Discussion started by: grajp002
3 Replies

10. Shell Programming and Scripting

Calling an Expect script from a Webpage using PHP

I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Discussion started by: CCUSmith
0 Replies
Login or Register to Ask a Question