GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Apr-2004, 06:08
jgnasser jgnasser is offline
New Member
 
Join Date: Apr 2004
Posts: 3
jgnasser is on a distinguished road

Multiple branching


I am working on a simple multipurpose web page that will load a member registration form or a search form or display a list of the members depending on what the user chooses. I include here a sample of what I'm using. All works well until I add that elseif portion then it reports an error. What could be the problem with this?

PHP Code:

<?php
if (isset($_GET['addmember'])):
?>

Some HTML code for adding a member

<?php
elseif (isset($_GET['Search'])):
?>

Some other HTML code for displaying a search page

<?php
else:

Some php/Html code (Displays default page);

Endif; 
?>

  #2  
Old 08-Apr-2004, 06:35
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
It will help a lot if you can tell us the exact error you get... it may be unrelated to your control structure example above.
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect multiple URLs to one script, masking true URL Maccaday Apache Web Server Forum 1 10-Dec-2003 09:34
Apache multiple localhosting - desperate! jnorris Apache Web Server Forum 8 24-Nov-2003 00:55
multiple Cpanel/WHM servers manager simscripts Web Hosting Forum 0 09-Sep-2003 19:10
SQL multiple languages query samtediou MySQL / PHP Forum 6 23-Jul-2003 14:09
Multiple MySQL vulnerabilities admin Web Hosting Forum 0 16-Dec-2002 14:49

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:31.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.